qq_42014453
且听风吟流
采纳率14.3%
2020-03-30 22:31

matlab的yalmip+cplex求解MIQP问题时,info显示unknown error,结果所有变量均是0,这是什么原因导致的

10

Default variable names x1, x2 ... being created.
Default row names c1, c2 ... being created.
Warning: global optimality target changes problem type to MIQP.
Tried aggregator 2 times.
MIQP Presolve eliminated 300 rows and 52 columns.
MIQP Presolve modified 288 coefficients.
Aggregator did 138 substitutions.
Reduced MIQP has 2617 rows, 1004 columns, and 12455 nonzeros.
Reduced MIQP has 0 binaries, 0 generals, 0 SOSs, and 0 indicators.
Reduced MIQP objective Q matrix has 2 nonzeros.
Presolve time = 0.02 sec. (5.28 ticks)

result =

  yalmiptime: 8.8790
  solvertime: 0.1510
        info: 'Unknown error (CPLEX-IBM)'
     problem: -1
solveroutput: [1x1 struct]
 solverinput: [1x1 struct]

```该规划问题一共680个变量,1752个约束,yaimip模型输出来看的话有1189个变量,3051个约束,变量没有设置bounds,运行得到如上所示,设置的sdpvar的变量值全部是0,请问这是什么原因导致的,错误出在哪里呢?若有精通yalmip+cplex的请加我qq349019156,希望可以有偿求教
  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

2条回答

  • dabocaiqq dabocaiqq 1年前
  • weixin_44998421 weixin_44998421 1年前

    这个跟yalmip没有关系,主要是因为目前所有的求解器,解决MIQP问题的能力都很有限,稍微复杂的二次型(或高次)问题都会遇到无法求解的问题(比如整数决策乘以整数决策),建议先将二次部分想办法线性化,或是否能简化,再调用求解器求解。

    点赞 评论 复制链接分享

相关推荐