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

Add general constraints support #554

Closed
votroto opened this issue Apr 4, 2024 · 2 comments
Closed

Add general constraints support #554

votroto opened this issue Apr 4, 2024 · 2 comments

Comments

@votroto
Copy link

votroto commented Apr 4, 2024

No idea if this is a reasonable request, but it would be really nice to have support for Gurobi's general function constraints. They can now be solved exactly without piecewise lin approx.

There are a few such as:

  • ln(x) = y
  • log(x) = y
  • sin(x) = y
  • cos(x) = y
  • tan(x) = y

which might not be impossible.

It's always the same pattern "one variable in a function equals another variable." If that's possible, bridges might actually make it nicer to use than even gurobi's interface.

@odow
Copy link
Member

odow commented Apr 4, 2024

The current suggestion is to use the C API: https://github.com/jump-dev/Gurobi.jl?tab=readme-ov-file#the-c-api-from-jump

A future version of Gurobi may support general nonlinear constraints, in which case we would support MOI.ScalarNonlinearFunction.

But we don't be adding general constraint support in the near term.

@odow
Copy link
Member

odow commented Apr 5, 2024

Closing as won't-fix. (But if you're interested, take a read of jump-dev/MathOptInterface.jl#2402)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants