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

Support abs generalized expressions #27

Merged
merged 2 commits into from
Aug 18, 2024
Merged

Support abs generalized expressions #27

merged 2 commits into from
Aug 18, 2024

Conversation

jonathanberthias
Copy link
Owner

@jonathanberthias jonathanberthias commented Aug 18, 2024

Part of #23

The absolute value is now handled in the scalar, vector and matrix cases. Auxiliary variables are added to the model to represent the absolute values.

Note

Extracted from #26 as there were too many changes at once 😅

It helped to reveal some issues when using matrices as the shape wasn't kept after translation. Also, constant absolute values are evaluated directly instead of generating variables.

@jonathanberthias jonathanberthias added cvxpy Handling more CVXPY features gurobipy Using more idiomatic gurobipy features labels Aug 18, 2024
@jonathanberthias jonathanberthias changed the title Support abs generalized expressions Support abs generalized expressions Aug 18, 2024
@jonathanberthias jonathanberthias merged commit 577b7f5 into main Aug 18, 2024
2 checks passed
@jonathanberthias jonathanberthias modified the milestone: v0.2.0 Aug 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cvxpy Handling more CVXPY features gurobipy Using more idiomatic gurobipy features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant