Hello Nicolas,
That's correct. CP Optimizer does not support floating point variables like it does integer variables. The way to do what you want is to approximate the floating point variables using discrete variables. For example, in our Python interface (docplex.cp) you could create a floating point variable with a certain granularity g (number of different possible values), like this:
def floatVar(mdl, min, max, g, name) :
v = mdl.integer_var(0, g - 1, name)
step = (max - min) / (g - 1)
return min + v * step
Regards,
Paul
------------------------------
Paul Shaw
------------------------------