[Clp] time limit on clp
Mustafa Kilinc
mrkilinc at gmail.com
Tue Jun 24 15:43:12 EDT 2014
Finally, I found a way.
OsiClpSolverInterface *osiclp = dynamic_cast<OsiClpSolverInterface*>(osilp);
ClpSimplex *clp = osiclp->getModelPtr();
clp->setMaximumSeconds(timelimit);
But I think osisolverinterface itself should have a function for
setting time limit.
On Tue, Jun 24, 2014 at 10:10 AM, Mustafa Kilinc <mrkilinc at gmail.com> wrote:
> I am using OsiClpSolverInterface to create my problem. Is there a way
> to put a time limit on clp solution time?
>
> ClpModel has this functionality. (maximumSeconds () const) Is there a
> way to access clpmodel from OsiClpSolverInterface?
More information about the Clp
mailing list