<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi Jonatan,<br>
<br>
Tested with the last lp of the page, everything worked well.<br>
Which CBC version are you using ?<br>
<br>
This was the solution I obtained:<br>
Optimal - objective value -122.50000000<br>
0 x1 40 -4<br>
1 x2 10.5 0<br>
2 x3 19.5 0<br>
3 x4 3 32.5<br>
<br>
<br>
<br>
<div class="moz-cite-prefix">On 17-03-2016 12:34, Jonatan Knud
Lauritsen wrote:<br>
</div>
<blockquote
cite="mid:209285119.624960.1458228852959.JavaMail.yahoo@mail.yahoo.com"
type="cite">
<div style="color:#000; background-color:#fff;
font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial,
Lucida Grande, sans-serif;font-size:16px">
<div class="qtdSeparateBR"><br>
<br>
</div>
<div style="display: block;"
id="yui_3_16_0_ym18_1_1458228227947_9731" class="yahoo_quoted">
<div id="yui_3_16_0_ym18_1_1458228227947_9730"
style="font-family: HelveticaNeue, Helvetica Neue,
Helvetica, Arial, Lucida Grande, sans-serif; font-size:
16px;">
<div id="yui_3_16_0_ym18_1_1458228227947_9729"
style="font-family: HelveticaNeue, Helvetica Neue,
Helvetica, Arial, Lucida Grande, sans-serif; font-size:
16px;"><br>
<div id="yui_3_16_0_ym18_1_1458228227947_9728"
class="y_msg_container">
<div id="yiv5540084996">
<div id="yui_3_16_0_ym18_1_1458228227947_9727">
<div id="yui_3_16_0_ym18_1_1458228227947_9726"
style="color:#000;background-color:#fff;font-family:HelveticaNeue,
Helvetica Neue, Helvetica, Arial, Lucida Grande,
sans-serif;font-size:16px;">
<div dir="ltr"
id="yiv5540084996yui_3_16_0_ym18_1_1458228227947_5373">I
did copy/paste of the last problem from the link
<a moz-do-not-send="true" rel="nofollow"
shape="rect"
id="yiv5540084996yui_3_16_0_ym18_1_1458228227947_5431"
target="_blank"
href="http://lpsolve.sourceforge.net/5.0/CPLEX-format.htm">CPLEX
LP file format</a> to the file and I tried to
run cbc against this file but the cbc crashed. I
also tried to run cbc against valid *.lp file
(which is made by lpsolve and is recognized by
lpsolve) but cbc crashed again. From my
experience cbc accepts mps files only. Is there
some test cplex lp file available?<br
clear="none">
</div>
<div class="yiv5540084996link-enhancr-attachment
yiv5540084996link-enhancr-element
yiv5540084996richcompose-card"
id="yiv5540084996enhancrCard_0"
style="width:450px;font-family:'Georgia',
'Times', 'Times New Roman',
'serif';margin-top:5px;margin-bottom:5px;background-color:#ffffff;">
<table class="yiv5540084996link-enhancr-element
yahoo-compose-table-card"
id="yiv5540084996yui_3_16_0_ym18_1_1458228227947_5458"
style="width:450px;height:auto;position:relative;display:block;"
border="0" cellpadding="0" cellspacing="0">
<tbody
id="yiv5540084996yui_3_16_0_ym18_1_1458228227947_5457">
<tr
class="yiv5540084996link-enhancr-element"
id="yiv5540084996yui_3_16_0_ym18_1_1458228227947_5464">
<td colspan="7" rowspan="1"
class="yiv5540084996link-enhancr-element"
id="yiv5540084996yui_3_16_0_ym18_1_1458228227947_5463"
style="height:1px;background-color:#e5e5e5;font-size:1px;border-collapse:collapse;">
<div
class="yiv5540084996link-enhancr-element"
id="yiv5540084996yui_3_16_0_ym18_1_1458228227947_5462"
style="height:1px;background-color:#e5e5e5;font-size:1px;line-height:0px;"> </div>
</td>
</tr>
<tr
class="yiv5540084996link-enhancr-element"
id="yiv5540084996yui_3_16_0_ym18_1_1458228227947_5461">
<td colspan="1" rowspan="5"
class="yiv5540084996link-enhancr-element"
style="width:1px;background-color:#e5e5e5;font-size:1pt;border-collapse:collapse;">
<div
class="yiv5540084996link-enhancr-element"
style="width:1px;background-color:#e5e5e5;font-size:1pt;"> </div>
</td>
<td colspan="1" rowspan="5"
class="yiv5540084996link-enhancr-element"
style="width:14px;background-color:#ffffff;font-size:0pt;border-collapse:collapse;">
<div
class="yiv5540084996link-enhancr-element"
style="width:14px;background-color:#ffffff;font-size:14pt;"> </div>
</td>
<td colspan="2" rowspan="1"
class="yiv5540084996link-enhancr-element"
id="yiv5540084996yui_3_16_0_ym18_1_1458228227947_5460"
style="height:6px;background-color:#ffffff;font-size:0pt;border-collapse:collapse;">
<div
class="yiv5540084996link-enhancr-element"
id="yiv5540084996yui_3_16_0_ym18_1_1458228227947_5459"
style="height:6px;background-color:#ffffff;font-size:6pt;"> </div>
</td>
<td colspan="1" rowspan="5"
class="yiv5540084996link-enhancr-element"
style="width:20px;background-color:#ffffff;font-size:0pt;border-collapse:collapse;">
<div
class="yiv5540084996link-enhancr-element"
style="width:20px;background-color:#ffffff;font-size:20pt;"> </div>
</td>
<td colspan="1" rowspan="5"
class="yiv5540084996link-enhancr-element"
style="width:1px;background-color:#e5e5e5;font-size:1pt;border-collapse:collapse;"
width="1">
<div
class="yiv5540084996link-enhancr-element"
style="width:1px;background-color:#e5e5e5;font-size:1pt;"> </div>
</td>
</tr>
<tr
id="yiv5540084996yui_3_16_0_ym18_1_1458228227947_5456">
<td colspan="2" rowspan="1"
class="yiv5540084996link-enhancr-element"
id="yiv5540084996yui_3_16_0_ym18_1_1458228227947_5455"
style="width:100%;vertical-align:middle;font-family:'Georgia',
'Times', 'Times New Roman', 'serif';">
<div
class="yiv5540084996link-enhancr-text-part
yiv5540084996link-enhancr-element"
id="yiv5540084996yui_3_16_0_ym18_1_1458228227947_5454"
style="line-height:16.5px;background-color:#ffffff;width:414px;">
<div
class="yiv5540084996link-enhancr-element"
id="yiv5540084996yui_3_16_0_ym18_1_1458228227947_5453"
style="word-wrap:break-word;"><span
class="yiv5540084996link-enhancr-element
yiv5540084996icon
yiv5540084996icon-shrink
yiv5540084996link-enhancr-toggle"></span><span
class="yiv5540084996link-enhancr-element
yiv5540084996icon
yiv5540084996icon-close
yiv5540084996link-enhancr-delete"></span><a
moz-do-not-send="true"
rel="nofollow" shape="rect"
class="yiv5540084996link-enhancr-card-urlWrapper
yiv5540084996link-enhancr-element"
id="yiv5540084996yui_3_16_0_ym18_1_1458228227947_5452" target="_blank"
href="http://lpsolve.sourceforge.net/5.0/CPLEX-format.htm"
style="text-decoration:none;text-decoration:none;color:#000000;line-height:100%;font-size:18px;display:block;"><span
id="yui_3_16_0_ym18_1_1458228227947_9750"
class="yiv5540084996link-enhancr-element
yiv5540084996link-enhancr-card-title"
style="margin:0;font-weight:normal;margin-bottom:3px;font-size:18px;line-height:21px;max-height:43px;color:#000000;overflow:hidden;display:inline-block;">CPLEX
LP file format</span></a>
<div
class="yiv5540084996link-enhancr-card-description
yiv5540084996link-enhancr-element"
style="font-size:13px;line-height:20px;color:#999999;max-height:81px;font-family:'Georgia',
'Times', 'Times New Roman',
'serif';overflow:hidden;">The
CPLEX LP file format provides a
facility for entering a problem in
a natural, algebraic LP
formulation from the keyboard. The
problem can be modified and saved
from within lpsolve. This
procedure is one way to create a
file in a format that lpsolve can
read. An alternative tec...</div>
</div>
</div>
</td>
</tr>
<tr>
<td colspan="2" rowspan="1"
class="yiv5540084996link-enhancr-element"
style="height:6px;background-color:#ffffff;font-size:0pt;border-collapse:collapse;"><br>
</td>
</tr>
<tr>
<td colspan="1" rowspan="1"
class="yiv5540084996link-enhancr-element"
style="vertical-align:middle;font-family:'Arial',
'Helvetica Neue', 'Helvetica',
'sans-serif';">
<div
class="yiv5540084996link-enhancr-element"
style="font-size:0pt;"><a
moz-do-not-send="true"
rel="nofollow" shape="rect"
class="yiv5540084996link-enhancr-card-url
yiv5540084996link-enhancr-element"
target="_blank"
href="http://lpsolve.sourceforge.net/5.0/CPLEX-format.htm"
style="color:black;text-decoration:none;text-decoration:none;cursor:pointer;"><span
class="yiv5540084996link-enhancr-element
yiv5540084996link-enhancr-view-on"
id="yiv5540084996yui_3_16_0_ym18_1_1458228227947_5447"
style="display:inline-block;line-height:11px;max-width:314px;min-width:254px;overflow:hidden;max-height:13px;"><span
class="yiv5540084996link-enhancr-element
yiv5540084996link-enhancr-mobile-no-resize"
style="vertical-align:middle;font-size:9px;line-height:11px;color:#999999;">Se
på <span
class="yiv5540084996link-enhancr-view-on-domain"
style="font-weight:bold;">lpsolve.sourceforge.net</span></span></span></a></div>
</td>
<td colspan="1" rowspan="1"
class="yiv5540084996link-enhancr-element"
style="vertical-align:middle;width:100px;font-family:'Arial',
'Helvetica Neue', 'Helvetica',
'sans-serif';">
<div
class="yiv5540084996link-enhancr-element
yiv5540084996link-enhancr-preview-wrapper"
style="max-width:100px;min-width:80px;overflow:hidden;text-align:right;line-height:11px;max-height:13px;font-size:0pt;"><span
class="yiv5540084996link-enhancr-element
yiv5540084996link-enhancr-preview-by
yiv5540084996link-enhancr-mobile-no-resize"
style="vertical-align:middle;font-size:9px;line-height:11px;color:#999999;">Forhåndsvis
efter Yahoo</span></div>
</td>
</tr>
<tr>
<td colspan="2" rowspan="1"
class="yiv5540084996link-enhancr-element"
style="height:9px;background-color:#ffffff;font-size:0pt;border-collapse:collapse;"><br>
</td>
</tr>
<tr
class="yiv5540084996link-enhancr-element">
<td colspan="7" rowspan="1"
class="yiv5540084996link-enhancr-element"
style="height:1px;background-color:#e5e5e5;font-size:1px;border-collapse:collapse;">
<div
class="yiv5540084996link-enhancr-element"
style="height:1px;background-color:#e5e5e5;font-size:1px;line-height:0px;"> </div>
</td>
</tr>
</tbody>
</table>
</div>
<div
id="yiv5540084996yui_3_16_0_ym18_1_1458228227947_5417"><a
moz-do-not-send="true" href="" rel="nofollow"
shape="rect" name="158112"></a></div>
<div
id="yiv5540084996yui_3_16_0_ym18_1_1458228227947_5090"><span></span></div>
<div id="yui_3_16_0_ym18_1_1458228227947_9987"
class="yiv5540084996qtdSeparateBR"><br
clear="none">
<br clear="none">
</div>
<div class="yiv5540084996yqt5527614220"
id="yiv5540084996yqt71929">
<div id="yui_3_16_0_ym18_1_1458228227947_9991"
class="yiv5540084996yahoo_quoted"
style="display:block;">
<div id="yui_3_16_0_ym18_1_1458228227947_9990"
style="font-family:HelveticaNeue, Helvetica
Neue, Helvetica, Arial, Lucida Grande,
sans-serif;font-size:16px;">
<div
id="yui_3_16_0_ym18_1_1458228227947_9989"
style="font-family:HelveticaNeue,
Helvetica Neue, Helvetica, Arial, Lucida
Grande, sans-serif;font-size:16px;">
<div
id="yui_3_16_0_ym18_1_1458228227947_9988"
dir="ltr"><font face="Arial" size="2">
Den 17:17 torsdag den 17. marts 2016
skrev Haroldo Gambini Santos
<a class="moz-txt-link-rfc2396E" href="mailto:haroldo.santos@gmail.com"><haroldo.santos@gmail.com></a>:<br
clear="none">
</font></div>
<br clear="none">
<br clear="none">
<div
id="yui_3_16_0_ym18_1_1458228227947_10007"
class="yiv5540084996y_msg_container">
<div id="yiv5540084996">
<div
id="yui_3_16_0_ym18_1_1458228227947_10006">
Hi Jonatan,<br clear="none">
<br clear="none">
CBC also loads problems in the CPLEX
LP file format, which is much
simpler in my opinion. (<a
moz-do-not-send="true"
rel="nofollow" shape="rect"
class="yiv5540084996moz-txt-link-freetext"
target="_blank"
href="http://lpsolve.sourceforge.net/5.0/CPLEX-format.htm"><a class="moz-txt-link-freetext" href="http://lpsolve.sourceforge.net/5.0/CPLEX-format.htm">http://lpsolve.sourceforge.net/5.0/CPLEX-format.htm</a></a>)<br
clear="none">
<br clear="none">
To load a problem in LP format and
save a solution in a TXT file just
call:<br clear="none">
<br clear="none">
cbc problem.lp solve solu
solution.txt<br clear="none">
<br clear="none">
Cheers,<br clear="none">
<br clear="none">
Haroldo<br clear="none">
<br clear="none">
<div
class="yiv5540084996yqt1951647800"
id="yiv5540084996yqt44708">
<div
id="yui_3_16_0_ym18_1_1458228227947_10008"
class="yiv5540084996moz-cite-prefix">On 17-03-2016 10:31, Jonatan Knud
Lauritsen wrote:<br clear="none">
</div>
<blockquote
id="yui_3_16_0_ym18_1_1458228227947_10010"
type="cite">
<div
id="yui_3_16_0_ym18_1_1458228227947_10009"
style="color:#000;background-color:#fff;font-family:HelveticaNeue,
Helvetica Neue, Helvetica,
Arial, Lucida Grande,
sans-serif;font-size:16px;">
<div
id="yiv5540084996yui_3_16_0_ym18_1_1458220166696_33906"><span
id="yiv5540084996yui_3_16_0_ym18_1_1458220166696_34043">Regarding use of
cbc. I understand that
problem can be loaded and
saved from and to MPS file
using commands import and
export. But what are
commands for displaying
and exporting to file the
results of optimization,
specifically - the values
of variables?</span></div>
<div
class="yiv5540084996qtdSeparateBR"
id="yiv5540084996yui_3_16_0_ym18_1_1458220166696_33907"><br clear="none">
<br clear="none">
</div>
<div
class="yiv5540084996yahoo_quoted"
id="yiv5540084996yui_3_16_0_ym18_1_1458220166696_33912"
style="display:block;">
<div
id="yiv5540084996yui_3_16_0_ym18_1_1458220166696_33911"
style="font-family:HelveticaNeue,
Helvetica Neue, Helvetica,
Arial, Lucida Grande,
sans-serif;font-size:16px;">
<div
id="yiv5540084996yui_3_16_0_ym18_1_1458220166696_33910"
style="font-family:HelveticaNeue,
Helvetica Neue,
Helvetica, Arial, Lucida
Grande,
sans-serif;font-size:16px;">
<div dir="ltr"
id="yiv5540084996yui_3_16_0_ym18_1_1458220166696_33909"><font
id="yiv5540084996yui_3_16_0_ym18_1_1458220166696_33908" face="Arial"
size="2"> Den 15:25
torsdag den 17.
marts 2016 skrev
Jonatan Knud
Lauritsen <a
moz-do-not-send="true"
rel="nofollow"
shape="rect"
class="yiv5540084996moz-txt-link-rfc2396E"
ymailto="mailto:jonatan.lauritsen@yahoo.dk" target="_blank"
href="mailto:jonatan.lauritsen@yahoo.dk"><a class="moz-txt-link-rfc2396E" href="mailto:jonatan.lauritsen@yahoo.dk"><jonatan.lauritsen@yahoo.dk></a></a>:<br
clear="none">
</font></div>
<br clear="none">
<br clear="none">
<div
class="yiv5540084996y_msg_container"
id="yiv5540084996yui_3_16_0_ym18_1_1458220166696_33915">
<div
id="yiv5540084996">
<div
class="yiv5540084996yqt2785070014"
id="yiv5540084996yqtfd46905">
<div
id="yiv5540084996yui_3_16_0_ym18_1_1458220166696_33914">
<div
id="yiv5540084996yui_3_16_0_ym18_1_1458220166696_33913"
style="color:#000;background-color:#fff;font-family:HelveticaNeue,
Helvetica
Neue,
Helvetica,
Arial, Lucida
Grande,
sans-serif;font-size:16px;"><br
clear="none">
<div
class="yiv5540084996qtdSeparateBR"
id="yiv5540084996yui_3_16_0_ym18_1_1458220166696_33916"><br clear="none">
<br
clear="none">
</div>
<div
class="yiv5540084996yahoo_quoted"
id="yiv5540084996yui_3_16_0_ym18_1_1458220166696_26517"
style="display:block;">
<div
id="yiv5540084996yui_3_16_0_ym18_1_1458220166696_26516"
style="font-family:HelveticaNeue,
Helvetica
Neue,
Helvetica,
Arial, Lucida
Grande,
sans-serif;font-size:16px;">
<div
id="yiv5540084996yui_3_16_0_ym18_1_1458220166696_26515"
style="font-family:HelveticaNeue,
Helvetica
Neue,
Helvetica,
Arial, Lucida
Grande,
sans-serif;font-size:16px;">Hi!
<div
class="yiv5540084996y_msg_container"
id="yiv5540084996yui_3_16_0_ym18_1_1458220166696_26520">
<div
id="yiv5540084996">
<div
id="yiv5540084996yui_3_16_0_ym18_1_1458220166696_26519">
<div
id="yiv5540084996yui_3_16_0_ym18_1_1458220166696_26518"
style="color:#000;background-color:#fff;font-family:HelveticaNeue,
Helvetica
Neue,
Helvetica,
Arial, Lucida
Grande,
sans-serif;font-size:16px;">
<div
id="yiv5540084996yui_3_16_0_ym18_1_1458220166696_17953"><br
clear="none">
</div>
<div dir="ltr"
id="yiv5540084996yui_3_16_0_ym18_1_1458220166696_17945">I am starting to
use CBC. I
need integer
linear
programming
solver and
apparently CBC
is the right
software from
the COIN-OR
projects (I am
not sure about
Symphony
project, maybe
it can solve
integer linear
programs as
well). I am
confused how
to use CBC. I
expected
cbc.dll, but
there is only
cbc.exe
available. I
am trying to
use cbc.exe, I
managed to
import and
solve problem
but I don't
understand how
to get results
back - e.g.
how to see
(and save to
file) values
of the
variables?
That is the
first
question.</div>
<div dir="ltr"
id="yiv5540084996yui_3_16_0_ym18_1_1458220166696_18488"><br clear="none">
</div>
<div dir="ltr"
id="yiv5540084996yui_3_16_0_ym18_1_1458220166696_18489">The second
question is -
is there
cbc.dll
available? I
found
CoinMP.dll and
tried to use
it, but it
seems to me an
completely
incomplete
project. E.g.
after
importing and
preparing
problems, the
getColCount
and
getRowCount
returns zero
values. One
can see in the
source code
that lot of
methodes
simply return
dummy value
and does
nothing. So -
how CBC is
intended to
use? My
impression is
that CBC is
simple
collection of
source files
and one should
combine,
integrate them
and build them
as one needes,
there is no
ready dll
(apart from
cbc.exe, which
is not quite
suitable to be
embedded in
other software
as it works as
interactive
session and
not as
input-output
program).</div>
<div dir="ltr"
id="yiv5540084996yui_3_16_0_ym18_1_1458220166696_18621"><br clear="none">
</div>
<div dir="ltr"
id="yiv5540084996yui_3_16_0_ym18_1_1458220166696_18651">The third
question is
about mps file
format which I
am using. How
to specify
integrality
constraints on
variables in
this file
format? Maybe
cbc
automatically
assumes that
all the unkown
variables will
be integers?
wikipedia
mentions that
MPS extensions
are suitable
for specifying
integrality
constraints
but do CBC
supports such
extensions and
where they ar
documented?</div>
<div dir="ltr"
id="yiv5540084996yui_3_16_0_ym18_1_1458220166696_18670"><br clear="none">
</div>
<div dir="ltr"
id="yiv5540084996yui_3_16_0_ym18_1_1458220166696_18671">Thanks in
advance!<br
clear="none">
</div>
</div>
</div>
</div>
<br
clear="none">
<br
clear="none">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br clear="none">
<br clear="none">
</div>
</div>
</div>
</div>
</div>
<br clear="none">
<fieldset
class="yiv5540084996mimeAttachmentHeader"></fieldset>
<br clear="none">
<pre id="yui_3_16_0_ym18_1_1458228227947_10025">_______________________________________________
Cbc mailing list
<a moz-do-not-send="true" rel="nofollow" shape="rect" class="yiv5540084996moz-txt-link-abbreviated" ymailto="mailto:Cbc@list.coin-or.org" target="_blank" href="mailto:Cbc@list.coin-or.org">Cbc@list.coin-or.org</a>
<a moz-do-not-send="true" rel="nofollow" shape="rect" class="yiv5540084996moz-txt-link-freetext" target="_blank" href="http://list.coin-or.org/mailman/listinfo/cbc">http://list.coin-or.org/mailman/listinfo/cbc</a>
</pre>
</blockquote>
</div>
<br clear="none">
<pre id="yui_3_16_0_ym18_1_1458228227947_10023" class="yiv5540084996moz-signature">--
==================================================
Haroldo Gambini Santos
D.Sc, Computer Science
Universidade Federal de Ouro Preto
<a moz-do-not-send="true" rel="nofollow" shape="rect" class="yiv5540084996moz-txt-link-freetext" target="_blank" href="http://www.decom.ufop.br/haroldo/">http://www.decom.ufop.br/haroldo/</a></pre>
</div>
</div>
<br clear="none">
<br clear="none">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<br>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Cbc mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Cbc@list.coin-or.org">Cbc@list.coin-or.org</a>
<a class="moz-txt-link-freetext" href="http://list.coin-or.org/mailman/listinfo/cbc">http://list.coin-or.org/mailman/listinfo/cbc</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
==================================================
Haroldo Gambini Santos
D.Sc, Computer Science
Universidade Federal de Ouro Preto
<a class="moz-txt-link-freetext" href="http://www.decom.ufop.br/haroldo/">http://www.decom.ufop.br/haroldo/</a></pre>
</body>
</html>