Skip to content

Conversation

@rwe
Copy link
Contributor

@rwe rwe commented Mar 13, 2016

Provides support for the timeout parameter. The timeout parameter is the positive integer seconds before either returning the optimal result or raising a timeout error.

The parameter defaults as 0, meaning no timeout.

In current hotyak/pylpsolve@master, if a timeout occurrs and is infeasible, a general LPException will be raised, identified by the message "Error 7: Timeout Occurred.". If a timeout occurs and the result was feasible, a warning will be printed with the string ""Solver solution suboptimal".

Under #7, if a timeout occurs and is infeasible, an LPTimeout instance will be raised. If a timeout occurs and the result is feasible, an LPSuboptimalException is raised instead (and the solver result can be used). This allows a timeout to be set, preventing unbounded computation, while still being able to programmatically identify a suboptimal result.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant