Opened 5 years ago

Closed 20 months ago

#114 closed defect (migrated)

Can't change Clp algorithm

Reported by: Rusker Owned by: mjs
Priority: major Milestone:
Component: Osi Base Class Version: 0.104
Keywords: Cc:

Description

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.

Change History (1)

comment:1 Changed 20 months ago by stefan

  • Resolution set to migrated
  • Status changed from new to closed

This ticket has been migrated to GitHub and will be resolved there: https://github.com/coin-or/Osi/issues/114

Note: See TracTickets for help on using tickets.