Skip to content

Fix add_constrained_variable(s) for a CachingOptimizer with an attached optimizer #1084

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

Merged
merged 3 commits into from
May 11, 2020

Conversation

martinbiel
Copy link
Contributor

Resolves #1083

I have not added any tests yet as I am not sure where it would be best to do so. The "CachingOptimizer MANUAL mode" testset includes adding constraints after the optimizer has been attached, so it could be tested for there.

…CachingOptimizer. Properly adds the variable(s) to an attached optimizer if there is any.
@blegat blegat added this to the v0.9.14 milestone May 11, 2020
@blegat blegat merged commit 1315e31 into jump-dev:master May 11, 2020
@martinbiel martinbiel deleted the cachopt_constrainedvars_fix branch May 11, 2020 08:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

add_constrained_variable(s) can break for CachingOptimizer if an optimizer has been attached
2 participants