[Cbc] lp file solve with missing variables

andres.botero at siemens.com andres.botero at siemens.com
Wed Jan 18 06:06:19 EST 2017


Dear cbc List members,

I am trying to solve the following problem (see lp string) with the precompiled binary implementation of cbc from command line with

"cbc LPfile.lp solve solu result.txt"

and save the results to result.txt.

I have read the syntax conventions for the lp format and have tested them but there seems to be something I am missing.

Namely for the problem at hand the solver computes a solution but some of the variables are omitted. See the result.txt string.

I would appreciate it if you could give me a hand with this.

Cheers

Andres Botero

result.txt ->

Optimal - objective value -290.01846652
      0 d_1_1                     30             -2.8870637
      1 d_1_2                     30             -1.1615686
      2 d_1_3                     30            -0.32764755
      8 s_1_1                    -10              4.2054192
      9 s_1_2                    -10              3.4716999
     10 s_1_3                    -10              2.3071445
     11 s_1_4                    -10              2.4836672
     12 s_1_5                     10            -0.45423134
     13 s_1_6                    -10             0.49643242
     14 s_1_7                    -10             0.72041283
     15 s_1_8                    -10              1.7339998
     17 _m017_17_1_8               1                      0
     23 _m017_17_1_6               1                      0
     24 _m017_17_1_7               1                      0

End of result.txt

LPfile.lp ->

Minimize
Obj:
  -2.887063738 d_1_1  -1.16156855416 d_1_2  -0.327647549501 d_1_3  +4.01724084034 d_1_4  +7.05847536308 d_1_5  +7.67583722639 d_1_6  +10.4888813123 d_1_7  +11.9564251804 d_1_8  +4.2054191528 s_1_1  +3.47169990806 s_1_2  +2.30714448089 s_1_3  +2.48366723813 s_1_4  -0.454231341303 s_1_5  +0.496432419695 s_1_6  +0.720412825165 s_1_7  +1.73399976052 s_1_8

Subject To
_m016_16_1_1 - _m017_17_1_8 <= 0.
_m016_16_1_2 - _m017_17_1_8 <= 0.
_m016_16_1_3 - _m017_17_1_8 <= 0.
_m016_16_1_4 - _m017_17_1_8 <= 0.
_m016_16_1_5 - _m017_17_1_8 <= 0.
_m016_16_1_6 - _m017_17_1_6 <= 0.
_m016_16_1_6 - _m017_17_1_7 <= 0.
_m016_16_1_6 - _m017_17_1_8 <= 0.
_m016_16_1_7 - _m017_17_1_7 <= 0.
_m016_16_1_7 - _m017_17_1_8 <= 0.
_m016_16_1_8 - _m017_17_1_8 <= 0.

Bounds
0. <= d_1_1 <= 30.
0. <= d_1_2 <= 30.
0. <= d_1_3 <= 30.
0. <= d_1_4 <= 30.
0. <= d_1_5 <= 30.
0. <= d_1_6 <= 30.
0. <= d_1_7 <= 30.
0. <= d_1_8 <= 30.
-10. <= s_1_1 <= 10.
-10. <= s_1_2 <= 10.
-10. <= s_1_3 <= 10.
-10. <= s_1_4 <= 10.
-10. <= s_1_5 <= 10.
-10. <= s_1_6 <= 10.
-10. <= s_1_7 <= 10.
-10. <= s_1_8 <= 10.

Binary
_m001_1_1_1 _m001_1_1_2 _m001_1_1_3 _m001_1_1_4 _m001_1_1_5 _m001_1_1_6 _m001_1_1_7 _m001_1_1_8 _m002_2_1_1 _m002_2_1_2 _m002_2_1_3 _m002_2_1_4 _m002_2_1_5 _m002_2_1_6 _m002_2_1_7 _m002_2_1_8 _m003_3_1_1 _m003_3_1_2 _m003_3_1_3 _m003_3_1_4 _m003_3_1_5 _m007_7_1_5 _m003_3_1_6 _m007_7_1_6 _m003_3_1_7 _m007_7_1_7 _m003_3_1_8 _m007_7_1_8 _m004_4_1_1 _m004_4_1_2 _m004_4_1_3 _m004_4_1_4 _m004_4_1_5 _m004_4_1_6 _m004_4_1_7 _m004_4_1_8 _m005_5_1_1 _m005_5_1_2 _m005_5_1_3 _m005_5_1_4 _m005_5_1_5 _m005_5_1_6 _m005_5_1_7 _m005_5_1_8 _m006_6_1_1 _m006_6_1_2 _m006_6_1_3 _m006_6_1_4 _m006_6_1_5 _m006_6_1_6 _m006_6_1_7 _m006_6_1_8 _m007_7_1_1 _m007_7_1_2 _m007_7_1_3 _m007_7_1_4 _m008_8_1_1 _m008_8_1_2 _m008_8_1_3 _m008_8_1_4 _m008_8_1_5 _m008_8_1_6 _m008_8_1_7 _m008_8_1_8 _m009_9_1_1 _m009_9_1_2 _m009_9_1_3 _m009_9_1_4 _m009_9_1_5 _m009_9_1_6 _m009_9_1_7 _m009_9_1_8 _m010_10_1_1 _m010_10_1_2 _m010_10_1_3 _m010_10_1_4 _m010_10_1_5 _m010_10_1_6 _m010_10_1_7 _m010_10_1_8 _m011_11_1_1 _m011_11_1_2 _m011_11_1_3 _m011_11_1_4 _m011_11_1_5 _m015_15_1_5 _m011_11_1_6 _m015_15_1_6 _m011_11_1_7 _m015_15_1_7 _m011_11_1_8 _m015_15_1_8 _m012_12_1_1 _m012_12_1_2 _m012_12_1_3 _m012_12_1_4 _m012_12_1_5 _m012_12_1_6 _m012_12_1_7 _m012_12_1_8 _m013_13_1_1 _m013_13_1_2 _m013_13_1_3 _m013_13_1_4 _m013_13_1_5 _m013_13_1_6 _m013_13_1_7 _m013_13_1_8 _m014_14_1_1 _m014_14_1_2 _m014_14_1_3 _m014_14_1_4 _m014_14_1_5 _m014_14_1_6 _m014_14_1_7 _m014_14_1_8 _m015_15_1_1 _m015_15_1_2 _m015_15_1_3 _m015_15_1_4 _m016_16_1_1 _m016_16_1_2 _m016_16_1_3 _m016_16_1_4 _m016_16_1_5 _m016_16_1_6 _m016_16_1_7 _m016_16_1_8 _m017_17_1_1 _m017_17_1_2 _m017_17_1_3 _m017_17_1_4 _m017_17_1_5 _m017_17_1_6 _m017_17_1_7 _m017_17_1_8

Integer


End


End of LPfile.lp


With best regards,
Andres Botero Halblaub

Siemens AG
Digital Factory Division
Technology and Innovations


Siemens Aktiengesellschaft: Chairman of the Supervisory Board: Gerhard Cromme; Managing Board: Joe Kaeser, Chairman, President and Chief Executive Officer; Roland Busch, Lisa Davis, Klaus Helmrich, Janina Kugel, Siegfried Russwurm, Ralf P. Thomas; Registered offices: Berlin and Munich, Germany; Commercial registries: Berlin Charlottenburg, HRB 12300, Munich, HRB 6684; WEEE-Reg.-No. DE 23691322
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/cbc/attachments/20170118/4d96159d/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Always6.lp
Type: application/octet-stream
Size: 2960 bytes
Desc: Always6.lp
URL: <http://list.coin-or.org/pipermail/cbc/attachments/20170118/4d96159d/attachment-0001.obj>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: result.txt
URL: <http://list.coin-or.org/pipermail/cbc/attachments/20170118/4d96159d/attachment-0001.txt>


More information about the Cbc mailing list