Examples of VariablesAssignment


Examples of org.jamesii.core.experiments.steering.VariablesAssignment

   *          the set of updates
   * @return the corresponding variable assignment
   */
  public static VariablesAssignment getUpdateAssignment(
      Set<IParamBlockUpdate> updates) {
    VariablesAssignment va = new VariablesAssignment();
    int counter = 1;
    for (IParamBlockUpdate update : updates) {
      va.put(UPDATE_NAME_PREFIX + counter++, update);
    }
    return va;
  }
View Full Code Here

Examples of org.jamesii.core.experiments.steering.VariablesAssignment

    // If this is null, the exploration is finished
    if (config == null) {
      changed(null);
      return null;
    }
    VariablesAssignment va = createAssignment(config);
    va.putAll(currentModelSetup);
    return va;
  }
View Full Code Here

Examples of org.jamesii.core.experiments.steering.VariablesAssignment

  protected VariablesAssignment calibration() {
    Pair<Pair<Double, Long>, ParameterBlock> setup =
        calibrator.getNextSimTime();
    currentSimStopTime = setup.getFirstValue().getFirstValue();
    currentMaxWallClockTime = setup.getFirstValue().getSecondValue();
    VariablesAssignment va = createAssignment(setup.getSecondValue());
    va.putAll(currentModelSetup);
    return va;
  }
View Full Code Here

Examples of org.jamesii.core.experiments.steering.VariablesAssignment

      freshlyInitialized = false;
      currentCount = counter;
    }
    if (currentCount > 0) {
      currentCount--;
      VariablesAssignment va = new VariablesAssignment();
      va.put("steerer_" + hashCode(), currentCount);
      return va;
    }
    return null;
  }
View Full Code Here

Examples of org.jamesii.core.experiments.steering.VariablesAssignment

    return result;
  }

  @Override
  public VariablesAssignment getNextVariableAssignment() {
    VariablesAssignment assignment = new VariablesAssignment();
    try {
      Configuration conf = next();
      if (conf == null) {
        return null;
      }
      for (BaseVariable<?> var : conf.values()) {
        assignment.put(var.getName(), var);
      }
    } catch (NoNextVariableException ex) {
      SimSystem.report(Level.INFO, state.toString());
      return null;
    }
View Full Code Here

Examples of org.jamesii.core.experiments.steering.VariablesAssignment

      if (currentJob.getConfiguration() == null) {
        return null;
      }

      // Configure variable assignment accordingly
      VariablesAssignment assignment =
          UpdateGenerator.getUpdateAssignment(UpdateGenerator
              .generateUpdates(currentJob.getConfiguration()));
      assignment.putAll(getOrCreateModelSetup(currentJob.getModelSetupIndex()));
      return assignment;
    } catch (InterruptedException ex) {
      SimSystem.report(Level.SEVERE,
          "Interrupted while waiting for next job to be executed.", ex);
      paramILSRunner.getParamILS().stop();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.