[Coin-discuss] OSI, CLP pivot
Matthew Galati
magh at lehigh.edu
Wed Apr 19 09:34:06 EDT 2006
If someone wants to do the following, using the "simplex interface":
{
while{
//some stuff...
...
si->resolve();
si->pivot(colIn, colOut, outStatus);
...
si->getBasisStatus();
si->getBInvARow( );
...
//some stuff...
}
}
Is it neccessary to call enable/disableSimplexInterface at every call?
I noticed, that if you pivot, the "basis_" is not updated until
disableSimplexInterface is called. So, the next call to getBasisStatus
does not have updated status.
The following seems to work, but is very slow. There is alot of time
spent in enable/disable.
{
while{
//some stuff...
...
si->resolve();
si->enableSimplexInterface();
si->pivot(colIn, colOut, outStatus);
si->disableSimplexInterface();
...
si->enableSimplexInterface();
si->getBasisStatus();
si->disableSimplexInterface();
si->enableSimplexInterface();
si->getBInvARow( );
si->disableSimplexInterface();
...
//some stuff...
}
}
Thanks,
Matt
More information about the Coin-discuss
mailing list