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

Cannot optimize a model twice #458

Closed
4 tasks done
guimarqu opened this issue Mar 2, 2021 · 0 comments · Fixed by #462 or #473
Closed
4 tasks done

Cannot optimize a model twice #458

guimarqu opened this issue Mar 2, 2021 · 0 comments · Fixed by #462 or #473
Assignees
Labels
bug Something isn't working

Comments

@guimarqu
Copy link
Contributor

guimarqu commented Mar 2, 2021

To Reproduce
Create a decomposed model

Then, call optimize! twice.

optimize!(model) # works
optimize!(model) # bug : MethodError: no method matching get_rowids_colids_vals(::Nothing)

Expected behavior
The second time I call optimize, optimization should restart from scratch.

Additional context
Tested in jupyter notebook

Tests
Should be tested in direct model & "normal mode".

  • no reformulation + direct model
  • no reformulation + no direct model
  • reformulation + direct model
  • reformulation + no direct model
@guimarqu guimarqu added the bug Something isn't working label Mar 2, 2021
@laradicp laradicp linked a pull request Mar 5, 2021 that will close this issue
@guimarqu guimarqu reopened this Mar 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants