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

Replace try..except by an method existence check to ease debugging #207

Merged
merged 1 commit into from
Sep 21, 2022

Conversation

nhuet
Copy link
Contributor

@nhuet nhuet commented Sep 20, 2022

The call to init_model() was inside a try.. except block because some solver does not have such method.
We replace this block by a test wether the method exists so that an error inside the init_model() will be seen to better understand why a solve does not work as expected.

The call to init_model() was inside a try.. except block because some
solver does not have such method.
We replace this block by a test wether the method exists so that an
error inside the init_model() will be seen to better understand why a
solve does not work as expected.
@g-poveda g-poveda self-requested a review September 21, 2022 07:00
Copy link
Collaborator

@g-poveda g-poveda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, better way of dealing with init_model in discreteopt solvers.

@g-poveda g-poveda merged commit 1e1bc2c into airbus:master Sep 21, 2022
@nhuet nhuet deleted the nht/do_solver_init_model branch October 6, 2022 12:22
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.

2 participants