trying to read quadratic program in cplex, get error

ⅰ亾dé卋堺 提交于 2019-12-24 14:53:09

问题


I am trying to load a CPLEX LP file in to CPLEX using the "read" command. I believe that in this problem, I have a set of constraints that are quadratic. But, from what I understand CPLEX will still attempt to solve quadratic programming problems.

However, when I try to read it in, I get this error:

CPLEX Error  1437: Line 284: Illegal quadratic constraint sense.

Is there something special I need to do to read in a quadratic programming problem?

NOTE: I am able to load this LP file in to scip and solve it using: scip -f


回答1:


The quadratic constraints must be convex. You can only constrain a convex function from above or a concave function from below. Quadratic equality constraints are never convex. That's likely your problem.



来源:https://stackoverflow.com/questions/10112348/trying-to-read-quadratic-program-in-cplex-get-error

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