Error with JuMP and Ipopt

廉价感情. 提交于 2019-12-24 10:31:24

问题


I am trying to use JumP and Ipopt under Julia v0.7.0. When I try to construct a model:

julia> m = Model(solver=IpoptSolver())

I get the following error message:

Feasibility problem with:
 * 0 linear constraints
 * 0 variables
Solver is Error showing value of type Model:
ERROR: BoundsError: attempt to access 1-element Array{SubString{String},1} at index [2]

I am using the following versions of the packages:

Ipopt v0.4.0
JuMP v0.18.2

Any ideas? Thanks!


回答1:


JuMP v0.18.2 does not support Julia v0.7, see this post.

If you want to use JuMP with Julia v0.7 or Julia v1.0 you should just the in-development version of JuMP that will be released as JuMP v0.19 when it is ready.

EDIT: JuMP v0.18.3 now supports Julia v1.0.



来源:https://stackoverflow.com/questions/51908147/error-with-jump-and-ipopt

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!