[Osi-tickets] [COIN-OR Open Solver Interface] #35: OsiGlpk: check
whether time limit has been reached
COIN-OR Open Solver Interface
coin-trac at coin-or.org
Mon Jun 18 09:45:31 EDT 2007
#35: OsiGlpk: check whether time limit has been reached
-------------------------+--------------------------------------------------
Reporter: stefan | Owner: mjs
Type: enhancement | Status: new
Priority: minor | Milestone:
Component: OsiGlpk | Version: 0.95
Keywords: |
-------------------------+--------------------------------------------------
Hi,
for GLPK it is possible to impose a timelimit, and it would be nice, when
it could be checked via the Osi/GLPK interface, whether GLPK stopped
because the timelimit was hit.
So my suggestion is to add a method {{{isTimeLimitReached()}}} similar to
{{{isIterationLimitReached()}}} to the !OsiGlpkSolverInterface.
To keep everything compatible with the general !OsiSolverInterface class,
isAbandoned() could still report true in this case.
Find attached a patch file which can be applied to !OsiGlpk rev. 982 and
adds this feature.
Best,[[BR]]
Stefan
--
Ticket URL: <https://projects.coin-or.org/Osi/ticket/35>
COIN-OR Open Solver Interface <http://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