首页 文章
  • 1 votes
     answers
     views

    在AMPL中实现CDF(或CDF的反转)

    我的问题涉及一些数学,所以我输入了Latex格式并拍了一下屏幕截图 . 我想知道如何在AMPL中实现这一点 . 在Matlab fmincon中,您可以轻松传递CDF(或CDF的反转),但我不知道在AMPL中我们如何做到这一点 . 有没有什么方法可以在AMPL中实现CDF(或CDF的反转)的功能 .
  • 0 votes
     answers
     views

    在AMPL IPOPT中找到最佳解决方案,但不满足约束条件

    我正在尝试解决这个简单的优化问题,包括凝胶功能 function gsl_cdf_ugaussian_Qinv; var x1 >= 0 ; minimize obj: (x1^2)-8*x1; subject to const1: x1-4 <= gsl_cdf_ugaussian_Qinv(1- 0.05); 然后我尝试在AMPL中解决这个问题 ampl: model te...
  • 1 votes
     answers
     views

    AMPL IPOPT提供错误的最优解决方案,而解决结果“解决”

    我试图用IPOPT解决AMPL中一个非常简单的优化问题,如下所示: var x1 >= 0 ; minimize obj: -(x1^2)+x1; 显然问题是无限的 . 但是IPOPT给了我: ****************************************************************************** This program contain...
  • 1 votes
     answers
     views

    IPOPT在第二次求解时找到最优解

    通常当我尝试使用IPOPT解决问题时,即使问题不可行,IPOPT也会显示运行过程,例如显示问题有多少约束以及问题的其他一般信息,但这次我遇到了一个奇怪的问题 . 我第一次解决它没有显示的问题,但第二次解决它,IPOPT返回最佳解决方案 . 像这样: -> ampl.eval('option solver ipopt ;'); -> ampl.solve() (它在这里什么也没有回复...
  • 0 votes
     answers
     views

    “没有包'coinhsl'发现”:IPOPT编译并通过测试,但是pyomo无法找到它?

    我不知道问题出在我和Pyomo.DAE之间,还是在我和IPOPT之间 . 我在Windows上的Ubuntu(WSL)上的Bash命令行界面中执行此操作 . 当我跑: JAMPchip @ DESKTOP-BOB968S:〜/ examples / dae $ python3 run_disease.py 我收到以下输出: 警告:找不到'ipopt'可执行文件,这是solver ipopt ...
  • 0 votes
     answers
     views

    IPOPT内存不足

    解决MINLP问题后,我收到以下错误(GAMS 24.4.1 / SCIP 3.1(020d055)): Checking feasibility of solution #00 with reported objective value -1.000000970918791e-09. This is Ipopt version 3.11, running with linear solver m...
  • 0 votes
     answers
     views

    无法使用IPOPT = true编译scip

    我已经下载了ipopt并编译了它(我没有libipopt.a,但我有libipopt.so和libipopt.la) . 当我尝试使用IPOPT = true编译scip时,我收到错误消息:致命错误:IpoptConfig.h:没有这样的文件或目录 我已经添加了软链接 . 我不知道是否与我没有libipopt.a有任何关系?
  • 0 votes
     answers
     views

    用IPOPT = true编译scip之后make SHARED = true scipoptlib,无法从pyscipopt.scip导入模型运行

    我编译了scip: $ IPOPT=true make SHARED=true scipoptlib 它已成功编译,我运行python接口的python setup.py安装 . 但是,当我在Python中运行 from pyscipopt.scip import Model 时,我收到以下错误消息: ImportError: scip-3.2.1/interfaces/python/lib/l...
  • 0 votes
     answers
     views

    如何验证用Ipopt编译的SCIP?

    我通过Julia使用SCIP(目前使用SCIP.jl,以前使用AmplNLWriter.jl) . 我根据SCIP.jl的说明编译了SCIP如下: make SHARE=true GMP=false IPOPT=true READLINE=false ZLIB=false scipoptlib 我可以从Julia打电话给SCIP . 我也确认SCIP与 make test 合作 . 但是,当我尝...
  • 0 votes
     answers
     views

    SCIP与IpOpt和AMPL

    我想使用SCIP和Ipopt以及AMPL接口来处理 .nl-files. scip shell(没有AMPL)包括Ipopt但是无法读取 .nl-files . 所以我编译了AMPL接口 . 但是在这里,似乎没有包括Ipopt . 命令 "scip-3.2.0/interfaces/ampl/bin/scipampl -i" 给出以下输出 . SCIP版本3.2.0 [精...

热门问题