【CPLEX Error 2002: Invalid Benders decomposition.】
CPXERR_BAD_DECOMPOSITION 2002
【CPLEX Error 2004: problem not compatible with Benders.】
CPXERR_NOT_FOR_BENDERS 2004
Benders algorithm is incompatible with the problem at hand: Ranged constraints, SOS, indicators or other general constraints present.
CPXERR_BAD_DECOMPOSITION 2002
Benders decomposition is invalid. No master or worker variables specified, or worker variables contain noncontinuous variables. This error can also occur if a given variable is annotated with a value strictly less than zero.
可能是问题太简单
【CPLEX Error 2004: problem not compatible with Benders.】
CPXERR_NOT_FOR_BENDERS 2004
Benders algorithm is incompatible with the problem at hand: Ranged constraints, SOS, indicators or other general constraints present.
情景1,主问题中存在类似“x1+x2<=2”的约束,可以修改成“x1+x2+c = 0”和“0<=c<=2”
情景1说明,当利用命令行直接读入保存的.lp和.ann文件,所保存的.lp文件中很可能已经有cplex自行添加的作用同“c”的变量
【CPLEX Error 2000】
CPXERR_NO_DECOMPOSITION 2000
Benders algorithm needs a decomposition of the variables to function.

本文针对CPLEX求解过程中出现的几种常见错误进行了解析,包括2002、2004及2000错误,并提供了可能的解决办法。如在Benders分解中变量类型不当或约束设置不合理等问题。
1136

被折叠的 条评论
为什么被折叠?



