-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Description
When I use JuMP to create two variables and try to place a constraint on them, I get an error.
Here is an minimal example and a prefix of the error message:
julia> lp = Model(Tulip.Optimizer{BigFloat})
A JuMP Model
Feasibility problem with:
Variables: 0
Model mode: AUTOMATIC
CachingOptimizer state: EMPTY_OPTIMIZER
Solver name: Tulip
julia> @variable(lp, x)
x
julia> @variable(lp, y)
y
julia> @constraint(lp, x - y >= 0)
ERROR: `MOI.ScalarAffineFunction{Float64}`-in-`MOI.GreaterThan{Float64}` constraints are not supported and cannot be bridged into supported constrained variables and constraints. See details below:
[1] constrained variables in `MOI.Nonnegatives` are not supported because no added bridge supports bridging it.
Cannot add free variables and then constrain them because:
(5) `MOI.VectorOfVariables`-in-`MOI.Nonnegatives` constraints are not supported
[2] constrained variables in `MOI.Nonpositives` are not supported because:
Cannot use `MOIB.Variable.NonposToNonnegBridge{Float64}` because:
[1] constrained variables in `MOI.Nonnegatives` are not supported
Cannot add free variables and then constrain them because:
(9) `MOI.VectorOfVariables`-in-`MOI.Nonpositives` constraints are not supported
[3] constrained variables in `MOI.LessThan{Float64}` are not supported because:
Cannot use `MOIB.Variable.VectorizeBridge{Float64,MOI.Nonpositives}` because:
[2] constrained variables in `MOI.Nonpositives` are not supported
Cannot add free variables and then constrain them because:
(10) `MOI.SingleVariable`-in-`MOI.LessThan{Float64}` constraints are not supported
[4] constrained variables in `MOI.GreaterThan{Float64}` are not supported because:
Cannot use `MOIB.Variable.VectorizeBridge{Float64,MOI.Nonnegatives}` because:
I am using Julia 1.5.2 on a Mac running OS version 10.15.6, JuMP version v0.21.4, Tulip version v0.6.2.
Tips on how to make this work would be very appreciated!
Metadata
Metadata
Assignees
Labels
No labels