I am new to Choco. I found an example online saying showing how to set the object as below
// Model objective function 3X + 4Y
IntVar OBJ = model.intVar("objective", 0, 999);
model.scalar(new IntVar[]{X,Y}, new int[]{3,4}, OBJ)).post();
// Specify objective
model.setObjective(Model.MAXIMIZE, OBJ);
What if my coeffs is double value? More specifically, if my objective function is 3.5X+4.2Y, how can I set the Objective? Please help. Thanks.