[Coin-discuss] Construct a MIP problem

John J Forrest jjforre at us.ibm.com
Fri Mar 18 12:01:04 EST 2005


Spencer,

It should work (well if you are using Clp).  I have modified the OsiClp 
unitTest to show that.  The extra code is lines 941 to 950 of 
OsiClpSolverInterfaceTest.cpp.

If you make unitTest in COIN/Osi and run unitTest you should see two mps 
files "continuous" and "integer".  You will see that the continuous bounds 
are all UP while the integer bounds are BV.

John Forrest



"Spencer Fung" <sklfung at cse.cuhk.edu.hk> 
Sent by: coin-discuss-bounces at list.coin-or.org
03/17/2005 01:32 PM
Please respond to
Discussions about open source software for Operations Research 


To
<coin-discuss at list.coin-or.org>
cc

Subject
[Coin-discuss] Construct a MIP problem






Hi All,
 
I am wondering how to construct a MIP problem by using constraint matrix. 
I have done the following procedure to create a MIP problem, 
 
    si->loadProblem(*matrix, NULL, col_ub, NULL, sense, rhs, NULL);
    si->setInteger(ctype, n_cols);
si->writeMps("problem");
 
However, the column type show in ?problem.mps? 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&B?
 
Thanks.
 
Cheers,
Spencer_______________________________________________
Coin-discuss mailing list
Coin-discuss at list.coin-or.org
http://list.coin-or.org/mailman/listinfo/coin-discuss

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/coin-discuss/attachments/20050318/da6cedee/attachment.html>


More information about the Coin-discuss mailing list