[Coin-discuss] adding constraints incrementally to OsiSolverInterface
J P Fasano
jpfasano at us.ibm.com
Thu Jul 13 00:38:50 EDT 2006
> I think the problem in the
> CoinPackedMatrix is copied to the internal
> Clp representation, and the
> extraGap and extraMajor information in the
> CoinPackedMatrix is not copied
> into this internal representation (which seems to be of
> class ClpPackedMatrix
> rather than CoinPackedMatrix).
That sounds correct.
If you don't want the OSI to copy the CoinPackedMatrix but
rather assume ownership of the CoinPackedMatrix, then use
the assignProblem method instead of loadProblem.
void OsiSolverInterface::assignProblem(
CoinPackedMatrix *& matrix,
double *& collb
double *& colub,
double *& obj,
double *& rowlb,
double *& rowub );
http://www.coin-or.org/Doxygen/Osi/class_osi_solver_interface.html#z124_1
It might be the case that OsiClp will construct a ClpPackedMatrix.
JP
More information about the Coin-discuss
mailing list