How to get out of this error?
MethodError: no method matching getindex (:: ConstraintRef {Model, JuMP.GenericRangeConstraint {JuMP.GenericAffExpr {Float64, Variable}}}, :: Int64, :: Int64)
How to get out of this error?
MethodError: no method matching getindex (:: ConstraintRef {Model, JuMP.GenericRangeConstraint {JuMP.GenericAffExpr {Float64, Variable}}}, :: Int64, :: Int64)
Seems you tried to index a constraint object in a 2D fashion, for example, given c
is the constraint object, you did, c[1, 1]
. I am not sure what you wanted by trying to access a position inside a constraint, so I cannot help you out of this error.