Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stopping a routine in finite processing time using the standard library #4

Open
Stefan-Endres opened this issue Sep 22, 2017 · 1 comment

Comments

@Stefan-Endres
Copy link
Owner

Currently in the go_bench_f_min.py file uses the interruptingcow module (interruptingcow.timeout) to stop the entire while loop in finite time. We cannot asses the time pass at the start of every loop since building on the simplicial complex (by either using delaunay triangulation or the hypercube sampling) can take extremely long on a single iteration.

We want to minimise dependencies for shgo since we want to include it in many other modules.

Therefore we need a way to stop the entire loop in a similar way that interruptingcow by wrapping the entire loop in a with statement and raising a RuntimeError when the processing time limit expires.

@Stefan-Endres
Copy link
Owner Author

The module is available under a MIT license so it might be worth adapting into shgo https://github.com/erikvanzijst/interruptingcow

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

No branches or pull requests

1 participant