Package rinde.sim.pdptw.experiment.Experiment

Examples of rinde.sim.pdptw.experiment.Experiment.ExperimentResults


    for (int i = 0; i < 5; i++) {
      final long seed = rng.nextLong();
      final DebugSolverCreator dsc = new DebugSolverCreator(seed,
          scenario.getTimeUnit());
      final Gendreau06ObjectiveFunction obj = new Gendreau06ObjectiveFunction();
      final ExperimentResults results = Experiment.build(obj)
          .addConfiguration(Central.solverConfiguration(dsc))
          .addScenario(scenario).perform();
      assertEquals(1, results.results.size());
      assertEquals(1, dsc.arraysSolver.getInputs().size());
      assertEquals(1, dsc.arraysSolver.getOutputs().size());
View Full Code Here


        .build(new Gendreau06ObjectiveFunction()) //
        .addScenario(scenario) //
        .addConfiguration(Central.solverConfiguration(s)) //
        .withRandomSeed(123);

    final ExperimentResults res1 = builder.perform();
    final ExperimentResults res2 = builder.perform();

    assertEquals(res1.results, res2.results);
  }
View Full Code Here

        .addScenario(scenario)
        .addConfiguration(Central.solverConfiguration(RandomSolver.supplier()))
        .usePostProcessor(new TestPostProcessor())
        .withRandomSeed(123);

    final ExperimentResults er = builder.perform();

    assertEquals(123, er.masterSeed);
    assertEquals(123, er.results.get(0).seed);

    @SuppressWarnings("unchecked")
View Full Code Here

        .addConfiguration(
            Central.solverConfiguration(RandomSolver.supplier(), "D"))
        .withThreads(4)
        .withRandomSeed(456);

    final ExperimentResults er = builder.perform();
    assertTrue(er.results.get(0).masConfiguration.toString().endsWith("A"));
    assertTrue(er.results.get(1).masConfiguration.toString().endsWith("B"));
    assertTrue(er.results.get(2).masConfiguration.toString().endsWith("C"));
    assertTrue(er.results.get(3).masConfiguration.toString().endsWith("D"));
  }
View Full Code Here

TOP

Related Classes of rinde.sim.pdptw.experiment.Experiment.ExperimentResults

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.