<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi,<br>
<br>
Thanks to your help, I have been able to call directly cbc from
within my program. I have obtained for a preliminary set <br>
of problems the same optimal values and more and less the same
execution time. I move recently to bigger size problems<br>
and I am having a strange problem. <br>
<br>
When I run my code, it crashes. When I run CBC standalone on the lp
file generated by my code, it does not<br>
crash and goes to optimality.<br>
<br>
Some relevant info. <br>
<br>
- The binary I am using is
<a class="moz-txt-link-freetext" href="http://www.coin-or.org/download/binary/Cbc/Cbc-2.7.1-win32-msvc9.zip">http://www.coin-or.org/download/binary/Cbc/Cbc-2.7.1-win32-msvc9.zip</a>.<br>
- I am using the version Cbc-2.7.2 for the API.<br>
<br>
And here is the key part of my code (I can provide a bigger sample
if needed)<br>
<br>
CbcModel cbcSolver(osiClpSolver);<br>
<br>
// Write to file <br>
osiClpSolver.writeLp("test","lp",0.00001,10,8,0.0,true); <br>
<br>
// 09/08/2012 - Call standalone CBC instead of
cbcSolver.branchAndBound();<br>
try {<br>
callCbc("-solve -quit", cbcSolver);<br>
}<br>
catch (CoinError e) {<br>
e.print();<br>
std::cout << "Crashing....\n";<br>
if (e.lineNumber() >= 0) std::cout<<"This was from
a CoinAssert"<<std::endl;<br>
exit(EXIT_FAILURE<span style="color: rgb(0, 0, 0);
font-family: verdana, arial, helvetica, sans-serif; font-size:
12px; font-style: normal; font-variant: normal; font-weight:
normal; letter-spacing: normal; line-height: normal; orphans: 2;
text-align: start; text-indent: 0px; text-transform: none;
white-space: normal; widows: 2; word-spacing: 0px;
-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;
background-color: rgb(255, 255, 255); display: inline !important;
float: none; "><span class="Apple-converted-space"></span></span>);<br>
}<br>
<br>
Any suggestions?<br>
<br>
Thanks<br>
<br>
Cheers<br>
<br>
Alexis<br>
<pre class="moz-signature" cols="72">--
Software Engineer/Research Engineer
Softree Technical Systems Inc.
<a class="moz-txt-link-abbreviated" href="http://www.softree.com">www.softree.com</a>
Engineering an Easier Way</pre>
</body>
</html>