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

add Ctrl-C handling to prematurely end solve (convenience feature) #159

Open
pokutta opened this issue Mar 26, 2021 · 1 comment
Open

add Ctrl-C handling to prematurely end solve (convenience feature) #159

pokutta opened this issue Mar 26, 2021 · 1 comment
Labels
enhancement New feature or request midterm Mid term

Comments

@pokutta
Copy link
Member

pokutta commented Mar 26, 2021

add the usual Ctrl-C handling to stop the solve but returning feasible solution. Basically we just need to catch it and set a flag in the main loops.

@pokutta pokutta added enhancement New feature or request midterm Mid term labels Mar 26, 2021
@sebastiendesignolle
Copy link
Collaborator

I discussed this with @matbesancon at some point and he mentioned this was quite harder than it looks. But what I'm usually doing is the following: since we do operations on the iterate (or active set) in place, we can easily recover the status of computations if they have a name in the REPL. But I guess there is no smart way of including this practice in the package itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request midterm Mid term
Projects
None yet
Development

No branches or pull requests

2 participants