To solve the problem (or trying to solve it) you need to search for a solution. This can be defined in a simplest way as follows.
DepthFirstSearch<FloatVar> label = new DepthFirstSearch<FloatVar>();
SplitSelectFloat<FloatVar> s = new SplitSelectFloat<FloatVar>(store, xs, null);
label.setAssignSolution(true);
label.labeling(store, s);
where xs is a vector of FloatVar to be assigned. You need to collect all decision variables here. In the SplitSelectFloat class you can also define variable selection method that can improve performance. For more examples, you can refer to org.jacop.examples.floats. There are also examples for minimization of a given cost function.
Best regards,
/Kris
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Delete
Last edit: Mike 2016-05-09
Hi Mike!
To solve the problem (or trying to solve it) you need to search for a solution. This can be defined in a simplest way as follows.
where xs is a vector of FloatVar to be assigned. You need to collect all decision variables here. In the SplitSelectFloat class you can also define variable selection method that can improve performance. For more examples, you can refer to org.jacop.examples.floats. There are also examples for minimization of a given cost function.
Best regards,
/Kris
delete
Last edit: Mike 2016-05-09
Thanks Kris, got it working!