JuMP和Ipopt错误 [英] Error with JuMP and Ipopt

查看:129
本文介绍了JuMP和Ipopt错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Julia v0.7.0下使用JumP和Ipopt.当我尝试构建模型时:

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())

我收到以下错误消息:

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

有什么想法吗?谢谢!

推荐答案

JuMP v0.18.2不支持Julia v0.7,请参见

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

如果要将JuMP与Julia v0.7或Julia v1.0一起使用,则应仅使用JuMP的开发版本,该版本将在准备就绪时作为JuMP v0.19发行.

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.

编辑:JuMP v0.18.3现在支持Julia v1.0.

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

这篇关于JuMP和Ipopt错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆