<div dir="ltr"><div><div><div><div><div>John,<br><br>That fixed it! I must have forgotten to set a path because I had 2.9.7 already compiled on my system.<br><br></div>Also, I see that CBC may not be able to build a solution unless all integer variables are provided (even if the omitted ones are easily determined/auxiliary).<br><br></div>This is a very valuable feature for me, so thanks to those who included it in the latest versions!<br></div><br></div>Regards,<br><br></div>Joel<br><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Dec 29, 2015 at 1:34 PM, John Forrest <span dir="ltr"><<a href="mailto:john.forrest@fastercoin.com" target="_blank">john.forrest@fastercoin.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<div>Joel,<br>
<br>
Unable to reproduce with latest stable.<br>
<br>
I get<br>
<br>
opening mipstart file ./Matching-pulp-simplify.sol.<br>
MIPStart values read for 32 variables.<span class=""><br>
Continuous objective value is 745 - 0.00 seconds<br>
Cgl0008I 15 inequality constraints converted to equality
constraints<br>
Cgl0004I processed model has 68 rows, 167 columns (162 integer
(162 of which binary)) and 503 elements<br>
Cutoff increment increased from 1e-05 to 0.9999<br></span>
Cbc0045I MIPStart provided solution with cost 1195<br>
<br>
or<br>
<br>
opening mipstart file ./Matching-manual.sol.<br>
MIPStart values read for 15 variables.<span class=""><br>
Continuous objective value is 745 - 0.00 seconds<br>
Cgl0008I 15 inequality constraints converted to equality
constraints<br>
Cgl0004I processed model has 68 rows, 167 columns (162 integer
(162 of which binary)) and 503 elements<br>
Cutoff increment increased from 1e-05 to 0.9999<br></span>
Cbc0045I Trying just fixing integer variables.<br>
Cbc0045I Warning: mipstart values could not be used to build a
solution.<br>
<br>
So try latest version and see if that fixes.<br>
<br>
John Forrest<div><div class="h5"><br>
Using On 27/12/15 19:54, Joel Cofield wrote:<br>
</div></div></div>
<blockquote type="cite"><div><div class="h5">
<div dir="ltr">
<div>
<div>Hi All,<br>
<br>
</div>
I am trying to run cbc through the command line with an
initial solution but it does not work. My .lp and three tries
at a .sol file are attached.<br>
<br>
My first attempt uses a .sol file generated by an initial run
of the same MIP but does not provide all of the variables for
some reason:<br>
cbc Matching-pulp.lp mips Matching-init-pulp.sol solve<br>
...<br>
Cbc0045I MIPStart solution provided values for 1 of 162
integer variables, 22 variables are still fractional.<br>
<br>
</div>
<div>My second attempt was to simplify the solution file but I
get a segmentation fault:<br>
cbc Matching-pulp.lp mips Matching-init-pulp_simpler.sol solve<br>
<br>
</div>
<div>So then I tried just making my own solution file and also
received a segmentation fault:<br>
<br>
</div>
<div>cbc Matching-pulp.lp mips Matching-manual.sol solve<br>
Welcome to the CBC MILP Solver <br>
Version: 2.9.0 <br>
Build Date: Feb 12 2015 <br>
<br>
command line -
/Library/Python/2.7/site-packages/PuLP-1.5.6-py2.7.egg/pulp/solverdir/cbc/osx/64/cbc
Matching-pulp.lp mips Matching-manual.sol solve (default
strategy 1)<br>
CoinLpIO::readLp(): Maximization problem reformulated as
minimization<br>
will open mipstart file ./Matching-manual.sol.<br>
mipstart values read for 15 variables.<br>
Continuous objective value is 745 - 0.00 seconds<br>
Cgl0008I 15 inequality constraints converted to equality
constraints<br>
Cgl0004I processed model has 68 rows, 167 columns (162 integer
(162 of which binary)) and 503 elements<br>
Cutoff increment increased from 1e-05 to 0.9999<br>
Segmentation fault: 11<br>
<br>
<br>
</div>
<div>If I just run cbc Matching-pulp.lp solve then cbc finds the
optimal solution.<br>
<br>
</div>
<div>Why are these file causing memory issues? Are there mips
file standards I can follow or is this a bug?<br>
<br>
</div>
<div>Thanks,<br>
<br>
</div>
<div>Joel<br>
</div>
<div><br>
</div>
</div>
<br>
<fieldset></fieldset>
<br>
</div></div><pre>_______________________________________________
Cbc mailing list
<a href="mailto:Cbc@list.coin-or.org" target="_blank">Cbc@list.coin-or.org</a>
<a href="http://list.coin-or.org/mailman/listinfo/cbc" target="_blank">http://list.coin-or.org/mailman/listinfo/cbc</a>
</pre>
</blockquote>
<br>
</div>
<br>_______________________________________________<br>
Cbc mailing list<br>
<a href="mailto:Cbc@list.coin-or.org">Cbc@list.coin-or.org</a><br>
<a href="http://list.coin-or.org/mailman/listinfo/cbc" rel="noreferrer" target="_blank">http://list.coin-or.org/mailman/listinfo/cbc</a><br>
<br></blockquote></div><br></div></div>