[Osi] setting problem's name using OsiCbcSolverInterface
Hacène Ouzia
h.ouzia at gmail.com
Mon May 25 17:16:49 EDT 2009
Hi,
What is the right way to set the problem's name using
OsiCbcSolverInterface. I tried to set it as below, but it doesn't work.
Thanks for help.
Cheers,
Hacene.
...
OsiCbcSolverInterface OSI_SOLVER;
....
OSI_SOLVER.loadProblem(MATRIX,COL_LB,COL_UB,OBJECTIVE,ROW_LB,ROW_UB);
OSI_SOLVER.setIntParam(OsiNameDiscipline,2);
std::string PROBNAME("MKnapsack");
OSI_SOLVER.setStrParam(OsiProbName, PROBNAME);
...
....
cat MKnapsack.mps
NAME BLANK
ROWS
N OBJROW
L row-1
L row-2
L row-3
.....
.....
-----
M. Hacène Ouzia
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/osi/attachments/20090525/dd01dc13/attachment.html>
More information about the Osi
mailing list