<br><font size=2 face="sans-serif">Looking OsiCpx it looks as if it sets
coltype_ in OsiCpx correctly but if it is not a MIP in Cplex does not tell
Cplex. Using writeMpsNative should work.</font>
<br>
<br>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>&quot;Spencer Fung&quot;
&lt;sklfung@cse.cuhk.edu.hk&gt;</b> </font>
<br><font size=1 face="sans-serif">Sent by: coin-discuss-bounces@list.coin-or.org</font>
<p><font size=1 face="sans-serif">03/18/2005 12:09 PM</font>
<table border>
<tr valign=top>
<td bgcolor=white>
<div align=center><font size=1 face="sans-serif">Please respond to<br>
Discussions about open source software for Operations Research &nbsp; &nbsp;
&nbsp; &nbsp;</font></div></table>
<br>
<td width=59%>
<table width=100%>
<tr>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td valign=top><font size=1 face="sans-serif">&quot;'Discussions about
open source software for Operations Research'&quot; &lt;coin-discuss@list.coin-or.org&gt;</font>
<tr>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td valign=top>
<tr>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td valign=top><font size=1 face="sans-serif">RE: [Coin-discuss] Construct
a MIP problem</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><font size=1 color=#000080 face="Arial">John,</font>
<br><font size=1 color=#000080 face="Arial">&nbsp;</font>
<br><font size=1 color=#000080 face="Arial">But I am using CPLEX, can it
be done the same?</font>
<br><font size=1 color=#000080 face="Arial">&nbsp;</font>
<br><font size=1 color=#000080 face="Arial">Spencer</font>
<br><font size=1 color=#000080 face="Arial">&nbsp;</font>
<div align=center>
<br>
<hr></div>
<br><font size=2 face="Tahoma"><b>From:</b> coin-discuss-bounces@list.coin-or.org
[mailto:coin-discuss-bounces@list.coin-or.org] <b>On Behalf Of </b>John
J Forrest<b><br>
Sent:</b> Saturday, March 19, 2005 1:01 AM<b><br>
To:</b> Discussions about open source software for Operations Research<b><br>
Subject:</b> Re: [Coin-discuss] Construct a MIP problem</font>
<br><font size=3 face="Times New Roman">&nbsp;</font>
<br><font size=2 face="sans-serif"><br>
Spencer,</font><font size=3 face="Times New Roman"> <br>
</font><font size=2 face="sans-serif"><br>
It should work (well if you are using Clp). &nbsp;I have modified the OsiClp
unitTest to show that. &nbsp;The extra code is lines 941 to 950 of OsiClpSolverInterfaceTest.cpp.</font><font size=3 face="Times New Roman">
<br>
</font><font size=2 face="sans-serif"><br>
If you make unitTest in COIN/Osi and run unitTest you should see two mps
files &quot;continuous&quot; and &quot;integer&quot;. &nbsp;You will see
that the continuous bounds are all UP while the integer bounds are BV.</font><font size=3 face="Times New Roman">
<br>
</font><font size=2 face="sans-serif"><br>
John Forrest</font><font size=3 face="Times New Roman"> <br>
</font>
<p>
<table width=100%>
<tr valign=top>
<td width=60%><font size=1 face="sans-serif"><b>&quot;Spencer Fung&quot;
&lt;sklfung@cse.cuhk.edu.hk&gt;</b> <br>
Sent by: coin-discuss-bounces@list.coin-or.org</font><font size=3 face="Times New Roman">
</font>
<p><font size=1 face="sans-serif">03/17/2005 01:32 PM</font><font size=3 face="Times New Roman">
</font>
<p>
<br>
<table border=4 width=100%>
<tr valign=top>
<td width=100% bgcolor=white>
<div align=center><font size=1 face="sans-serif">Please respond to<br>
Discussions about open source software for Operations Research &nbsp; &nbsp;
&nbsp; &nbsp;</font></div></table>
<br>
<td width=39%>
<br>
<table width=100%>
<tr>
<td width=16%>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td width=83% valign=top><font size=1 face="sans-serif">&lt;coin-discuss@list.coin-or.org&gt;</font><font size=3 face="Times New Roman">
</font>
<tr>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td valign=top><font size=3 face="Times New Roman">&nbsp;</font>
<tr>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td valign=top><font size=1 face="sans-serif">[Coin-discuss] Construct
a MIP problem</font></table>
<br><font size=3 face="Times New Roman">&nbsp;</font>
<p>
<br>
<table width=100%>
<tr valign=top>
<td width=50%><font size=3 face="Times New Roman">&nbsp;</font>
<td width=50%><font size=3 face="Times New Roman">&nbsp;</font></table>
<br></table>
<br><font size=3 face="Times New Roman"><br>
<br>
</font><font size=1 face="Arial"><br>
Hi All,</font><font size=3 face="Times New Roman"> </font><font size=1 face="Arial"><br>
 </font><font size=3 face="Times New Roman">&nbsp;</font><font size=1 face="Arial"><br>
I am wondering how to construct a MIP problem by using constraint matrix.
I have done the following procedure to create a MIP problem, <br>
 </font><font size=3 face="Times New Roman">&nbsp;</font><font size=1 face="Arial"><br>
 &nbsp; &nbsp;si-&gt;loadProblem(*matrix, NULL, col_ub, NULL, sense, rhs,
NULL);</font><font size=3 face="Times New Roman"> </font><font size=1 face="Arial"><br>
 &nbsp; &nbsp;si-&gt;setInteger(ctype, n_cols);</font><font size=3 face="Times New Roman">
</font><font size=1 face="Arial"><br>
si-&gt;writeMps(&quot;problem&quot;);</font><font size=3 face="Times New Roman">
</font><font size=1 face="Arial"><br>
 </font><font size=3 face="Times New Roman">&nbsp;</font><font size=1 face="Arial"><br>
However, the column type show in &#8220;problem.mps&#8221; is still continuous. But
after invoke the branchAndBound(), the column type is changed to integer.
Is it possible to obtain an integer model before invoking the B&amp;B?</font><font size=3 face="Times New Roman">
</font><font size=1 face="Arial"><br>
 </font><font size=3 face="Times New Roman">&nbsp;</font><font size=1 face="Arial"><br>
Thanks.</font><font size=3 face="Times New Roman"> </font><font size=1 face="Arial"><br>
 </font><font size=3 face="Times New Roman">&nbsp;</font><font size=1 face="Arial"><br>
Cheers,</font><font size=3 face="Times New Roman"> </font><font size=1 face="Arial"><br>
Spencer</font><font size=2 face="Courier New">_______________________________________________<br>
Coin-discuss mailing list<br>
Coin-discuss@list.coin-or.org<br>
http://list.coin-or.org/mailman/listinfo/coin-discuss</font><font size=2><tt>_______________________________________________<br>
Coin-discuss mailing list<br>
Coin-discuss@list.coin-or.org<br>
http://list.coin-or.org/mailman/listinfo/coin-discuss<br>
</tt></font>
<br>