[Osi-tickets] [COIN-OR Open Solver Interface] #114: Can't change Clp algorithm
COIN-OR Open Solver Interface
coin-trac at coin-or.org
Wed Aug 26 13:47:28 EDT 2015
#114: Can't change Clp algorithm
----------------------------+-------------------
Reporter: Rusker | Owner: mjs
Type: defect | Status: new
Priority: major | Milestone:
Component: Osi Base Class | Version: 0.104
Keywords: |
----------------------------+-------------------
Hi, I hope this is the correct way to present my problem.
In the past I've been able to change the algorithm used by Clp in
initialSolve in the following way:
{{{
OsiClpSolverInterface *osiSlvr = new OsiClpSolverInterface();
ClpSolve clpSolve;
clpSolve.setSolveType(ClpSolve::useBarrier);
osiSlvr->setSolveOptions(clpSolve);
osiSlvr->initialSolve();
}}}
Now I'm working on a more complicated program that has to solve a problem
more than one time, so I'm using an initialSolve followed by (a certain
amount of) resolve(). If I use the same code as above, I don't seem to be
able to switch between Primal, Dual and Barrier. I can use the hints to
ask for Primal or Dual in solve/resolve, but I'm not sure it's the same
thing.
Is there something wrong in the code above? Or is there something
different I have to do to change the algorithm used in resolve? Any help
is appreciated.
--
Ticket URL: <https://projects.coin-or.org/Osi/ticket/114>
COIN-OR Open Solver Interface <https://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