[OS] How to get basic/non-basic variable information from the OSResult or OSRL ?
Chen K★Pop Dangsuwan
chein249 at hotmail.com
Wed Sep 15 23:37:37 EDT 2010
Hello
I've created the OSInstance and solved it with the CoinSolver object.
It can solve correctly but I can't get basic/non-basic variable information from the OSResult or OSRL.
The OSOption is default.
Here is the code.
--------------------------------------------------------------
OSInstance *osin = createOSInstance();
CoinSolver *solver = new CoinSolver();
solver->osinstance = osin;
solver->solve();
OSResult *osr = solver->osresult;
int numOfBasisVar = osr->getNumberOfBasisVar(0);
--------------------------------------------------------------
numOfBasisVar is -1 for every model I've solved.
I appreciate any help on this matter.
Best regards
Koraphat Dangsuwan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.coin-or.org/pipermail/os/attachments/20100915/3df7bf53/attachment.html
More information about the OS
mailing list