-
-
Notifications
You must be signed in to change notification settings - Fork 13
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 of nonlinear constraints? #216
Comments
It's currently not planned to do this even though JuMP supports non linear constraints. |
OK. Is it the same with quadratic constraints? |
Yes whereas there it might be easier to do something I think. I was think I can support them if I have something like: monotonically increasing in all variables but that is quite restrictive. I'll have a look in the literature if I can find something on how to prune constraints like this. |
That's great. That would help for at least some of these non-linear constraints. |
Are there plan to support general nonlinear constraints (in the future)?
Coming from constraint programming systems such as MiniZinc, Picat, Gecode, OR-tools, etc, I'm quite used to - and spoiled with - nonlinear constraints. But what I can see, there is no support at all in ConstraintSolver.jl for nonlinear constraints which is - I assume - because JuMP don't handle general nonlinear constraint what I know. And it seems that ConstraintSolver.jl don' support quadratic constraints either.
Here's a simple (and contrived) example which yield the following error:
MOI.ScalarQuadraticFunction{Float64}-in-'MOI.GreaterThan{Float64}' constraints are not supported and cannot be bridged into supported constrained variables and constraints. See details below: ....
And the following constraint yield
Cannot multiply a quadratic expression by a variable
I know that many/most nonlinear constraint can be reformulated using a lot of binary variables instead, but I would really prefer to use "traditional" nonlinear constraints, especially when trying to translate (decompose) global constraints.
Here's a more realistic example: modelling the
cumulative
global constraint (adapted from MiniZinc's cumulative function)The text was updated successfully, but these errors were encountered: