cbc求解器日志存储器丢失

时间:2019-03-22 11:26:11

标签: python memory solver pyomo

我正在使用cbc求解器求解pyomo模型。

通过求解器的日志文件,我可以看到它需要解决多少时间。

但是我想知道是否有一种方法可以检查解决模型所需的内存量?

是否有查看内存使用情况的命令?

以下是求解器的日志文件:

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

0 个答案:

没有答案