use of org.chocosolver.solver.Solution in project scheduler by btrplace.
the class DefaultReconfigurationProblem method makeResultingPlan.
private ReconfigurationPlan makeResultingPlan() {
// Check for the solution
ESat status = solver.isFeasible();
if (status == ESat.FALSE) {
// It is certain the CSP has no solution
return null;
}
Solution s = null;
if (!solutions.isEmpty()) {
s = solutions.get(solutions.size() - 1);
}
return buildReconfigurationPlan(s, model.copy());
}
Aggregations