mirror of
https://github.com/graphhopper/jsprit.git
synced 2020-01-24 07:45:05 +01:00
mod example
This commit is contained in:
parent
3786f8e977
commit
a989338b18
1 changed files with 3 additions and 0 deletions
|
|
@ -8,6 +8,7 @@ import jsprit.core.algorithm.VehicleRoutingAlgorithmBuilder;
|
||||||
import jsprit.core.algorithm.state.StateManager;
|
import jsprit.core.algorithm.state.StateManager;
|
||||||
import jsprit.core.problem.VehicleRoutingProblem;
|
import jsprit.core.problem.VehicleRoutingProblem;
|
||||||
import jsprit.core.problem.constraint.ConstraintManager;
|
import jsprit.core.problem.constraint.ConstraintManager;
|
||||||
|
import jsprit.core.problem.io.VrpXMLWriter;
|
||||||
import jsprit.core.problem.job.Job;
|
import jsprit.core.problem.job.Job;
|
||||||
import jsprit.core.problem.job.Service;
|
import jsprit.core.problem.job.Service;
|
||||||
import jsprit.core.problem.solution.VehicleRoutingProblemSolution;
|
import jsprit.core.problem.solution.VehicleRoutingProblemSolution;
|
||||||
|
|
@ -83,5 +84,7 @@ public class SolomonWithSkillsExample {
|
||||||
SolutionPrinter.print(skillProblem, solution, SolutionPrinter.Print.VERBOSE);
|
SolutionPrinter.print(skillProblem, solution, SolutionPrinter.Print.VERBOSE);
|
||||||
|
|
||||||
new Plotter(skillProblem,solution).plot("output/skill_solution","solomon_with_skills");
|
new Plotter(skillProblem,solution).plot("output/skill_solution","solomon_with_skills");
|
||||||
|
|
||||||
|
new VrpXMLWriter(skillProblem,solutions).write("output/solomon_with_skills");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue