Originally posted by: GGR
Hi
The objective constraint for a CP Optimizer model is an arithmetical expression of the variables of the model. in the vellinochosenBin model the array of variables that defines the capacity of the bins from the assignment of the components production among the bins. That is the integer variables array produce in the sample. Beside the model and the objective terms are linear and the model is solved by the Cplex engine.
For a CP model you can use whatever arithmetical operators (sum, min, max) or function (square, square root, log, /) and some arithmetical constraints such as x <= 5, y != 1, .... In the latest case the constraint is cast in a Boolean expression whose value is 1 is the constraint is enforced in the solution (e.g. if x is assigned to 4 the value of x < 5 is 1), zero elsewhere.
I may not have understood your need, please tell me more.
Hope that helps
#DecisionOptimization#OPLusingCPOptimizer