[Osi-tickets] [COIN-OR Open Solver Interface] #57: OsiClp::getReducedGradient requires enableFactorization() but does not ensure it
COIN-OR Open Solver Interface
coin-trac at coin-or.org
Mon May 26 07:38:28 EDT 2008
#57: OsiClp::getReducedGradient requires enableFactorization() but does not
ensure it
----------------------------+-----------------------------------------------
Reporter: nowozin | Owner: mjs
Type: defect | Status: new
Priority: minor | Milestone:
Component: Osi Base Class | Version:
Keywords: |
----------------------------+-----------------------------------------------
Osi 0.98.2 and trunk, OsiClpSolverInterface::getReducedGradient() requires
a prior call to both enableSimplexInterface(true) and
enableFactorization(), but only checks/asserts the simplex interface.
If getReducedGradient is called in a sequence like this:
{{{
OsiClpSolverInterface* si = new OsiClpSolverInterface;
// ... setup problem, solve
si->enableSimplexInterface(true);
si->getReducedGradient(dest_cost, dest_dual, probe_cost);
}}}
it will crash in the first memcpy call in getReducedGradient. If a
enableFactorization() call is inserted prior to getReducedGradient, things
work as expected.
--
Ticket URL: <https://projects.coin-or.org/Osi/ticket/57>
COIN-OR Open Solver Interface <http://projects.coin-or.org/Osi>
An API for a variety of LP and MIP solvers (and more).
More information about the Osi-tickets
mailing list