Skip to content

Commit

Permalink
update after RinSim update
Browse files Browse the repository at this point in the history
  • Loading branch information
rinde committed Aug 7, 2015
1 parent 077073c commit f34e7e2
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@
import com.github.rinde.rinsim.central.SolverValidator;
import com.github.rinde.rinsim.experiment.Experiment;
import com.github.rinde.rinsim.experiment.ExperimentResults;
import com.github.rinde.rinsim.experiment.PostProcessors;
import com.github.rinde.rinsim.pdptw.common.ObjectiveFunction;
import com.github.rinde.rinsim.pdptw.common.StatisticsDTO;
import com.github.rinde.rinsim.scenario.gendreau06.Gendreau06ObjectiveFunction;
import com.github.rinde.rinsim.scenario.gendreau06.Gendreau06Parser;
import com.google.common.collect.ImmutableList;
Expand All @@ -54,10 +56,12 @@ public void consistency() {
.wrap(CheapestInsertionHeuristic.supplier(objFunc))))
.repeat(3)
.withThreads(3)
.usePostProcessor(PostProcessors.statisticsPostProcessor())
.perform();
for (int i = 0; i < er.getResults().size(); i++) {
assertEquals(979.898336,
objFunc.computeCost(er.getResults().asList().get(i).getStats()),
objFunc.computeCost(
(StatisticsDTO) er.getResults().asList().get(i).getResultObject()),
0.0001);
}
}
Expand Down

0 comments on commit f34e7e2

Please sign in to comment.