[Coin-discuss] Construct a MIP problem

Spencer Fung sklfung at cse.cuhk.edu.hk
Thu Mar 17 13:32:03 EST 2005


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

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


More information about the Coin-discuss mailing list