Package org.jamesii.simspex.adaptiverunner

Examples of org.jamesii.simspex.adaptiverunner.AdaptiveTaskRunnerFactory


      exp.setDefaultSimStopTime(SimulationProblemDefinition
          .getSimStopTime(problem));
      exp.setFixedModelParameters(new HashMap<String, Object>(problem
          .getSchemeParameters()));
      exp.setTaskRunnerFactory(new ParameterizedFactory<TaskRunnerFactory>(
          new AdaptiveTaskRunnerFactory(), (new ParameterBlock())
              .addSubBl(AdaptiveTaskRunnerFactory.PORTFOLIO,
                  new ArrayList<>(job.getConfigs().values()))
              .addSubBl(AdaptiveTaskRunnerFactory.POLICY,
                  policyFactory.getClass().getName())
              .addSubBl(ParallelComputationTaskRunnerFactory.NUM_CORES,
View Full Code Here


                .addSubBl(AdaptiveTaskRunnerFactory.POLICY_OBSERVERS, observers)
                .addSubBl(AdaptiveTaskRunnerFactory.POLICY,
                    new ParameterBlock(UCB2Factory.class.getName()));
            pb.addSubBl(ParallelComputationTaskRunnerFactory.NUM_CORES, 1);
            be.setTaskRunnerFactory(new ParameterizedFactory<TaskRunnerFactory>(
                new AdaptiveTaskRunnerFactory(), pb));

            StopWatch sw = new StopWatch();
            sw.start();
            be.execute();
            sw.stop();
View Full Code Here

TOP

Related Classes of org.jamesii.simspex.adaptiverunner.AdaptiveTaskRunnerFactory

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.