CPLEX Java - IloCplex 在此上下文中不支持二次方程
CPLEX Java - Quadratics not supported in this context by IloCplex
是否可以使用 CPLEX 实现具有二次约束的多重 objective 问题?我尝试使用 staticLex 方法实现它,如下所示:
cplex.add(cplex.minimize(cplex.staticLex(objArray)));
但是它输出以下异常:
Concert exception 'ilog.cplex.IloCplex$UnsupportedQException: CPLEX
Error: quadratics not supported in this context by IloCplex' caught
有什么解决办法吗?
提前致谢
不,如发行说明 here 中所述,CPLEX 12.9(强调我的)不支持此功能:
Optimization problems with multiple linear objective functions can be
specified in CPLEX.
如果您通过虚拟变量将 objective 的二次部分移动到约束中,将导致 CPLEX Error 1031: Not available for QCP.
是否可以使用 CPLEX 实现具有二次约束的多重 objective 问题?我尝试使用 staticLex 方法实现它,如下所示:
cplex.add(cplex.minimize(cplex.staticLex(objArray)));
但是它输出以下异常:
Concert exception 'ilog.cplex.IloCplex$UnsupportedQException: CPLEX
Error: quadratics not supported in this context by IloCplex' caught
有什么解决办法吗?
提前致谢
不,如发行说明 here 中所述,CPLEX 12.9(强调我的)不支持此功能:
Optimization problems with multiple linear objective functions can be specified in CPLEX.
如果您通过虚拟变量将 objective 的二次部分移动到约束中,将导致 CPLEX Error 1031: Not available for QCP.