Created
August 14, 2017 07:36
-
-
Save ge0ffrey/c334ef1f44be32d00d93c86e387b8872 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class TennisBenchmarkApp extends LoggingMain { | |
public static void main(String[] args) { | |
new TennisBenchmarkApp().benchmark(); | |
} | |
private final PlannerBenchmarkFactory benchmarkFactory; | |
public TennisBenchmarkApp() { | |
SolverFactory<TennisSolution> solverFactory = SolverFactory.createFromXmlResource(TennisApp.SOLVER_CONFIG); | |
benchmarkFactory = PlannerBenchmarkFactory.createFromSolverFactory( | |
solverFactory, new File("local/data/tennis")); | |
} | |
public void benchmark() { | |
TennisSolution problem = new TennisGenerator().createTennisSolution(); | |
PlannerBenchmark plannerBenchmark = benchmarkFactory.buildPlannerBenchmark(problem); | |
plannerBenchmark.benchmark(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment