Using CP-SAT
I wish to instantiate a new IntVar to be used as an indicator variable. I do not know at this point the possible values it may take, so I want to instantiate it with the largest domain possible.
long myUpperBound = long.MaxValue - 1;
long myLowerBound = long.MinValue + 2;
IntVar myVar= CPmodel.NewIntVar(myLowerBound, myUpperBound, "var_name");
I get the following error:
Invalid model: var #3 has a domain that is too large, i.e. |UB - LB| overflow an int64_t: name: "var_name" domain: -9223372036854775806 domain: 9223372036854775806
Any suggestions?