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

Hotfix: Minimization with bounds properly minimize targets #462

Merged
merged 8 commits into from
Jan 15, 2025

Conversation

AVHopp
Copy link
Collaborator

@AVHopp AVHopp commented Jan 14, 2025

This PR hot-fixes #460 by multiplying the output of the objective.transform with -1 if the target is bounded and to be minimized.

This PR also introduces a test and a small example for verifying the desired behavior. The solution implemented here is only temporary and will be replaced with a proper mechanism soon.

@AVHopp AVHopp added the bug Something isn't working label Jan 14, 2025
@AVHopp AVHopp self-assigned this Jan 14, 2025
examples/tmp.py Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
tests/test_objective.py Outdated Show resolved Hide resolved
@AdrianSosic AdrianSosic merged commit deb3d5a into main Jan 15, 2025
9 of 11 checks passed
@AdrianSosic AdrianSosic deleted the hotfix/minimization branch January 15, 2025 13:32
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 this pull request may close these issues.

Double inversion for transformed minimization targets
3 participants