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

Check the initialization of the solver went fine while updating hessian and constraint matrix #64

Merged
merged 2 commits into from
Jun 4, 2020

Conversation

GiulioRomualdi
Copy link
Member

I noticed that there are cases in which the solver initialization while updating the hessian and the constraint matrices throw an error. I.e. The new hessian matrix is not SDP. In case of problems, without checking the return value of initSolver(), the code crashes with segmentation fault in setPrimalVariable().
This PR fixes the aforementioned problem.

@GiulioRomualdi GiulioRomualdi requested a review from S-Dafarra June 4, 2020 07:15
@GiulioRomualdi GiulioRomualdi self-assigned this Jun 4, 2020
@GiulioRomualdi GiulioRomualdi merged commit 21bfc9e into devel Jun 4, 2020
@GiulioRomualdi GiulioRomualdi deleted the fix/solver_initialization branch June 4, 2020 07:42
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