Package org.jamesii.core.experiments.optimization.parameter

Examples of org.jamesii.core.experiments.optimization.parameter.Configuration


  @Override
  public void executionFinished(TaskConfiguration simConfig,
      RunInformation runInfo) {

    Configuration arrivedConfig =
        extractConfigurationFromSimulationConfiguration(simConfig);

    Map<String, BaseVariable<?>> observedResponses =
        extractResponse(runInfo.getResponse());
View Full Code Here


      while (iOF.hasNext()) {
        OptimizerFactory of = iOF.next();
        boolean ok = false;
        // IOrderedSet is needed of optimizer and supported by definition
        if (of.needsOrderedSet()) {
          Configuration c = parameter.getSubBlockValue("factors");
          if (c.factorsInstanceof(IQuantitativeVariable.class)) {
            ok = true;
          }
        } else {
          ok = true;
        }
View Full Code Here

  protected void newConfigurationCreated() throws NoNextVariableException {

    Map<String, Double> representedValues =
        optimizationProblem.calcRepresentedValue(currentConfigurationRuns);

    Configuration tempConfig;
    try {
      tempConfig = currentConfigurationRuns.getConfiguration().clone();
    } catch (CloneNotSupportedException e) {
      throw new NoNextVariableException(e);
    }
View Full Code Here

      paretoFront.put(configuration, representativeValues);
    }
    Map<Configuration, Map<String, Double>> newEntries = new LinkedHashMap<>();
    for (Iterator<Configuration> it = paretoFront.keySet().iterator(); it
        .hasNext();) {
      Configuration config = it.next();
      Map<String, Double> values = paretoFront.get(config);
      int comp = reprValueComparator.compare(representativeValues, values);
      if (comp > 0) {
        checkFlag = false;
      }
View Full Code Here

  @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

    if (runningConfigurations.size() == 0) {
      return false;
    }

    int position = 0;
    Configuration config = configInfos.getConfiguration();

    while (position < runningConfigurations.size()) {
      if (runningConfigurations.get(position).containsConfiguration(config)) {
        return true;
      }
View Full Code Here

   * @return the corresponding (parameter-) configuration
   */
  private Configuration extractConfigurationFromSimulationConfiguration(
      TaskConfiguration simConfig) {

    Configuration config;
    try {
      config = optimizationProblem.createFactors();
    } catch (CloneNotSupportedException e) {
      SimSystem.report(e);
      return null;
    }

    for (BaseVariable<?> factor : config.values()) {
      BaseVariable<?> temp =
          (BaseVariable<?>) simConfig.getParameters().get(factor.getName());
      config.put(factor.getName(), temp);
    }

    return config;
  }
View Full Code Here

    problemDef.setRepresentedValueCalculation(new ArithmeticMeanOfObjectives());
    problemDef.addCancelOptimizationCriteria(cancelCriterion);

    for (Map<String, BaseVariable<?>> startConfig : startConfigs) {
      problemDef.addPredefinedConfiguration(new Configuration(startConfig));
    }
  }
View Full Code Here

TOP

Related Classes of org.jamesii.core.experiments.optimization.parameter.Configuration

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.