CPLEX Error 1001: Out of memory

Now that's something I hate to see. Especially if you are just trying to solve the "small" problems in you target instance set.

Of course there are many reasons for this to happen. You can try to get some help/inspiration from:

  • Asking or searching (for lost souls with similar problem) in the CPLEX forum.
  • 如果物理内存没使用满, 尝试扩大允许cplex使用的内存。如cplex.setParam(IloCplex.Param.WorkMem,2048); 
  • Following the advice of this technote from the IBM Support site.

 

In my case, I could not find a solution using the resources above. Maybe I did a lousy job searching, but in any case I want to leave a note here in case someone else finds it helpful.

The problem: Since I was using the same CPLEX environment and problem to reoptimize, solutions found at each iteration were kept in the solution pool. The solution pool started to grow like crazy and CPLEX would run out of memory.

That's it. I hope this eventually helps someone out there.

Edit: As Bo Jensen points out, is not always easy to just throw away solutions without hurting performance. Maybe a good solution is to limit the pool size, but also play with the CPX_PARAM_SOLNPOOLREPLACE parameter, which controls the replacement strategy for when the pool is full and a new solution appears.

解决链接https://www.ibm.com/support/knowledgecenter/zh/SSSA5P_12.8.0/ilog.odms.cplex.help/CPLEX/Parameters/topics/SolnPoolCapacity.html

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值