Closed metanoid closed 3 years ago
Can you provide a minimum working example with the model?
i.e do you create the variables in one go or one after another?
Did you maybe have all different constraints of the form:
@constraint(model, x in CS.AllDifferentSet(y))
and y was bigger than the length of x?
I did not, but I can try that.
On Mon, Mar 9, 2020 at 5:04 PM Ole Kröger notifications@github.com wrote:
Did you maybe have all different constraints of the form:
@constraint(model, x in CS.AllDifferentSet(y)
and y was bigger than the length of x?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Wikunia/ConstraintSolver.jl/issues/82?email_source=notifications&email_token=ABZOZLHLH4SU777DXDS7WHDRGUARJA5CNFSM4KUS6HCKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEOHTDHQ#issuecomment-596586910, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABZOZLAVE7GGIQD2PF533VTRGUARJANCNFSM4KUS6HCA .
Now AllDifferent
is a bit easier and should be written as:
@constraint(model, x in CS.AllDifferentSet())
Can happen in a variety of different cases and is normally because something isn't supported by the solver directly. In that case bridges might be used which sometimes create additional unbounded variable (or continuous variables). Those are not supported by my ConstraintSolver but I don't have the option to tell the bridge layer about this.
I have a
JuMP
model where all variables are bounded and typeInt
(I had someBin
variables, and changed them to beInt
with0
lower bound and1
upper bound, but that does not help).If I run
v = JuMP.all_variables(model)
on my model thenv
has length 15272.So the following error message is very strange:
I don't understand what I might be doing wrong, so I'm logging this in the hope that my mistake is obvious to someone else.