YALMIP:求解器中的未知问题(在sdpsettings中打开“调试”)(使用cplexmilp时出错(第328行)CPLEX Error 1001: Out of memory.
)
我在yalmip中应用了cplex求解器,但是无法求解模型。我认为默认内存设置会导致此错误。 cplex设置代码无法在yalmip中使用。
cplex.setParam(IloCplex :: WorkDir,“ c:/ cplex /”);
cplex.setParam(IloCplex :: NodeFileInd,2); 因此,如何正确设置内存。谢谢。
This is error information
There may be further error information in the clone logs.
Flow cuts applied: 116
Mixed integer rounding cuts applied: 299
Lift and project cuts applied: 75
Gomory fractional cuts applied: 60
Warning: MIP starts not constructed because of out-of-memory status.
Root node processing (before b&c):
Real time = 5.02 sec. (945.62 ticks)
Parallel b&c, 4 threads:
Real time = 957.66 sec. (874133.10 ticks)
Sync time (average) = 36.04 sec.
Wait time (average) = 0.05 sec.
------------
Total (root+branch&cut) = 962.67 sec. (875078.72 ticks)
result =
yalmiptime: NaN
solvertime: NaN
info: [1x128 char]
problem: 9
答案 0 :(得分:0)
您的计算机没有足够的RAM来运行问题。
您可以做一些技巧
如果这些策略都不起作用,那么我们无能为力。您需要重新调整型号或更换为具有更多RAM的PC。