<html><body>
<p>Lasse,<br>
<br>
Not sure why you are getting message with logLevel at 0. If you want you can send me code to reproduce problem.<br>
<br>
With my modifications you are calling ClpSimplex directly. If the code thought it was being called from Osi (and probably therefore Cbc) it may switch message off. Try magic line<br>
<br>
si->getModelPtr()->setSpecialOptions(si->getModelPtr()->specialOptions()|32768); !!!!<br>
<br>
and see if message goes away.<br>
<br>
John<br>
<br>
<img width="16" height="16" src="cid:1__=0ABBFF72DFA461278f9e8a93df938@us.ibm.com" border="0" alt="Inactive hide details for Lasse Kliemann ---06/25/2009 03:42:08 PM---John, it's essentially the code you sent me, just with som"><font color="#424282">Lasse Kliemann ---06/25/2009 03:42:08 PM---John, it's essentially the code you sent me, just with some</font><br>
<br>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr valign="top"><td width="1%"><img width="96" height="1" src="cid:2__=0ABBFF72DFA461278f9e8a93df938@us.ibm.com" border="0" alt=""><br>
<font size="2" color="#5F5F5F">From:</font></td><td width="100%"><img width="1" height="1" src="cid:2__=0ABBFF72DFA461278f9e8a93df938@us.ibm.com" border="0" alt=""><br>
<font size="2">Lasse Kliemann <lasse-list-clp-2009@mail.plastictree.net></font></td></tr>
<tr valign="top"><td width="1%"><img width="96" height="1" src="cid:2__=0ABBFF72DFA461278f9e8a93df938@us.ibm.com" border="0" alt=""><br>
<font size="2" color="#5F5F5F">To:</font></td><td width="100%"><img width="1" height="1" src="cid:2__=0ABBFF72DFA461278f9e8a93df938@us.ibm.com" border="0" alt=""><br>
<font size="2">clp@list.coin-or.org</font></td></tr>
<tr valign="top"><td width="1%"><img width="96" height="1" src="cid:2__=0ABBFF72DFA461278f9e8a93df938@us.ibm.com" border="0" alt=""><br>
<font size="2" color="#5F5F5F">Date:</font></td><td width="100%"><img width="1" height="1" src="cid:2__=0ABBFF72DFA461278f9e8a93df938@us.ibm.com" border="0" alt=""><br>
<font size="2">06/25/2009 03:42 PM</font></td></tr>
<tr valign="top"><td width="1%"><img width="96" height="1" src="cid:2__=0ABBFF72DFA461278f9e8a93df938@us.ibm.com" border="0" alt=""><br>
<font size="2" color="#5F5F5F">Subject:</font></td><td width="100%"><img width="1" height="1" src="cid:2__=0ABBFF72DFA461278f9e8a93df938@us.ibm.com" border="0" alt=""><br>
<font size="2">Re: [Clp] How to get integral solution for totally unimodular matrix?</font></td></tr>
</table>
<hr width="100%" size="2" align="left" noshade style="color:#8091A5; "><br>
<br>
<br>
<tt>John, it's essentially the code you sent me, just with some <br>
additional output for debugging. It appears however that despite <br>
this warning message<br>
<br>
Clp3002W Empty problem - 250 rows, 0 columns and 0 elements<br>
<br>
the problem is solved correctly. I also integrated your extra <br>
code in my main application, and it works fine.<br>
<br>
These two:<br>
<br>
si->getModelPtr()->numberRows()<br>
si->getModelPtr()->numberColumns()<br>
<br>
also show correct numbers.<br>
<br>
The only obvious problem left is that warning message itself, <br>
which can be irritating.<br>
<br>
<br>
* Message by -John J Forrest- from Thu 2009-06-25:<br>
> <br>
> Lasse,<br>
> <br>
> I don't see that the changes I suggested would cause that. Try just<br>
> replacing initialSolve by resolve - also print out size of model before<br>
> resolve. If you want to send me stuff directly do so (as long as it is not<br>
> too large).<br>
> <br>
> John Forrest<br>
> <br>
> <br>
> <br>
> From: Lasse Kliemann <lasse-list-coin-2009@mail.plastictree.net><br>
> <br>
> To: clp@list.coin-or.org <br>
> <br>
> Date: 06/24/2009 02:53 PM <br>
> <br>
> Subject: Re: [Clp] How to get integral solution for totally unimodular matrix?<br>
> <br>
> <br>
> <br>
> <br>
> <br>
> <br>
> * Message by -John J Forrest- from Wed 2009-06-24:<br>
> <br>
> > If you replace the initialSolve by resolve, then the problem goes away.<br>
> > However the long thin strategy is 50 times faster!<br>
> ><br>
> > To get good performance and normal simplex characteristics you need to<br>
> add<br>
> > ten lines. I attach a modified integral.cpp.<br>
> <br>
> Thank you, John, for the explanation and the example code.<br>
> <br>
> I ran it, but it keeps complaining about an empty problem:<br>
> <br>
> Clp3002W Empty problem - 250 rows, 0 columns and 0 elements<br>
> <br>
> The problem *is* loaded via 'assignProblem'; I also tried:<br>
> <br>
> si->getModelPtr()->loadProblem(*matrix, col_lb, col_ub,<br>
> objective, row_lb, row_ub);<br>
> <br>
> to no avail.<br>
> <br>
> <br>
> Thank you for a hint.<br>
> Lasse<br>
> [attachment "atthbeby.dat" deleted by John J Forrest/Watson/IBM]<br>
> _______________________________________________<br>
> Clp mailing list<br>
> Clp@list.coin-or.org<br>
> </tt><tt><a href="http://list.coin-or.org/mailman/listinfo/clp">http://list.coin-or.org/mailman/listinfo/clp</a></tt><tt><br>
> <br>
<br>
<br>
<br>
[attachment "att69tce.dat" deleted by John J Forrest/Watson/IBM] _______________________________________________<br>
Clp mailing list<br>
Clp@list.coin-or.org<br>
</tt><tt><a href="http://list.coin-or.org/mailman/listinfo/clp">http://list.coin-or.org/mailman/listinfo/clp</a></tt><tt><br>
</tt><br>
<br>
</body></html>