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

New nonlinear expression stuff doesn't support min properly #3508

Closed
davidanthoff opened this issue Sep 14, 2023 · 1 comment · Fixed by #3509
Closed

New nonlinear expression stuff doesn't support min properly #3508

davidanthoff opened this issue Sep 14, 2023 · 1 comment · Fixed by #3509
Labels
Category: Nonlinear Related to nonlinear programming Type: Bug

Comments

@davidanthoff
Copy link
Contributor

On master with the new non linear expression, one cannot call min on two AffExpr because min internally just calls isless, and that is one of the functions that doesn't have operator overloading for the JuMP expression types.

I think the solution is presumably that JuMP needs to add a min method that internally uses JuMP.op_strictly_less_than (or one of its variants), right?

@odow
Copy link
Member

odow commented Sep 14, 2023

Oops. This was just an oversight. I added min and max support to MOI after I had started working on #3106 and never copied across the new features...the perils of working on a branch for one year.

See #3509

@odow odow added Type: Bug Category: Nonlinear Related to nonlinear programming labels Sep 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category: Nonlinear Related to nonlinear programming Type: Bug
Development

Successfully merging a pull request may close this issue.

2 participants