@Override
public void informIterationStarts(int i, VehicleRoutingProblem problem,Collection<VehicleRoutingProblemSolution> solutions) {
/*
* plot only distance-costs, i.e. without fixed costs
*/
VehicleRoutingProblemSolution bestOf = Solutions.bestOf(solutions);
chartBuilder.addData(algorithmName, i, bestOf.getCost()-bestOf.getRoutes().size()*100.);
}
});
}