cbc solver log memory is missing

不羁的心 提交于 2019-12-11 16:56:18

问题


I am solving a pyomo model with cbc solver.

With the log file of the solver I can see how much time it needed to solve.

But I was wondering if there is a way to check how much memory is needed to solve the model?

Any command to see the memory usage?

Following is the log file of the solver:

Solver command line: ['/usr/bin/cbc', '-printingOptions', 'all', '-import', '/home/okan/Desktop/urbs-oemof/tmpkb6ceyi_.pyomo.lp', '-stat=1', '-solve', '-solu', '/home/okan/Desktop/urbs-oemof/tmpkb6ceyi_.pyomo.soln']

Welcome to the CBC MILP Solver 
Version: 2.9.9 
Build Date: Aug 21 2017 

command line - /usr/bin/cbc -printingOptions all -import /home/okan/Desktop/urbs-oemof/tmpkb6ceyi_.pyomo.lp -stat=1 -solve -solu /home/okan/Desktop/urbs-oemof/tmpkb6ceyi_.pyomo.soln (default strategy 1)
Option for printingOptions changed from normal to all
Presolve 28997 (-106136) rows, 23022 (-85053) columns and 90179 (-256204) elements
Statistics for presolved model


Problem has 28997 rows, 23022 columns (14022 with objective) and 90179 elements
Column breakdown:
23006 of type 0.0->inf, 16 of type 0.0->up, 0 of type lo->inf, 
0 of type lo->up, 0 of type free, 0 of type fixed, 
0 of type -inf->0.0, 0 of type -inf->up, 0 of type 0.0->1.0 
Row breakdown:
3000 of type E 0.0, 0 of type E 1.0, 0 of type E -1.0, 
3000 of type E other, 0 of type G 0.0, 0 of type G 1.0, 
0 of type G other, 22997 of type L 0.0, 0 of type L 1.0, 
0 of type L other, 0 of type Range 0.0->1.0, 0 of type Range other, 
0 of type Free 
Presolve 28997 (-106136) rows, 23022 (-85053) columns and 90179 (-256204) elements
Perturbing problem by 0.001 %% of 1014.8149 - largest nonzero change 0.0011148049 (%% 8.731222) - largest zero change 0.0011030239
0  Obj 0 Primal inf 4.6277138e+08 (3000)
...
31432  Obj 2.4937446e+10 Dual inf 2.4666622e-05 (8)
31437  Obj 2.4937446e+10
Optimal - objective value 2.4937446e+10
After Postsolve, objective 2.4937446e+10, infeasibilities - dual 2.9754721e-06 (7), primal 0.00015048761 (3)
Presolved model was optimal, full model needs cleaning up
0  Obj 2.4937446e+10 Dual inf 3.0241971e-06 (7)
0  Obj 2.4937446e+10 Dual inf 3.0241971e-06 (7)
9  Obj 2.4937446e+10
Optimal - objective value 2.4937446e+10
Optimal objective 2.493744571e+10 - 31446 iterations time 19.292, Presolve 0.43
Total time (CPU seconds):       20.28   (Wallclock seconds):       20.43

来源:https://stackoverflow.com/questions/55298605/cbc-solver-log-memory-is-missing

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!