[Coin-lpsolver] enableSimplexInterface
Matthew Galati
magh at lehigh.edu
Thu Jul 31 14:23:56 EDT 2003
Hi CLP,
Not sure if this is a bug or if I am using it incorrectly. I want access
to basis information. To "enable" the simplex interface, I do the following:
si->getModelPtr()->setSolveType(1);
si->enableSimplexInterface(false);
After solving (using dual simplex), I call
const double * sol = si->getColSolution();
to get the primal solution - however, it seems to return all zeros.
If you do not enable the simplex interface it correctly returns the
optimal solution.
I have attached a small example which shows this.
Another question, using OsiClp, what is the best way to access the
values of the basic variables from the simplex interface? In CPX, there
is a function
CPXgetbhead (getEnvironmentPtr(),
getLpPtr( OsiCpxSolverInterface::KEEPCACHED_ALL ),
head, y);
that returns the indices of the basic variables 'head' (OsiClp currently provides the access method getBasics) and their values 'y' (which I don't currently see an access method in OsiClp).
Thanks,
Matt
--
Matthew Galati
ISE Lehigh University
IBM Service Parts Solutions
610.758.4042 (Office)
610.882.0779 (Home)
magh at lehigh.edu, magal11 at us.ibm.com
http://sagan.ie.lehigh.edu/mgalati/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.tar.gz
Type: application/x-tar
Size: 1516 bytes
Desc: not available
URL: <http://list.coin-or.org/pipermail/clp/attachments/20030731/0ba7f6fe/attachment.tar>
More information about the Clp
mailing list