Examples of ParamILSMessage


Examples of org.jamesii.simspex.exploration.ils.observation.ParamILSMessage

      ParameterBlock theta = thetaILS;
      for (int i = 0; i < changesPerRun; i++) {
        theta = getInformationSource().getRandomNeighbour(theta);
      }

      changed(new ParamILSMessage(ParamILSMessageType.ParameterAdjusting,
          theta, 0.));

      // "Basic Local Search"
      theta = iterativeFirstImprovement(theta);

      // Acceptance / random restarts
      if (better(theta, thetaILS)) {
        thetaILS = theta;
      }
      if (rng.nextDouble() <= restartProbability) {
        thetaILS = getInformationSource().restart();
        changed(new ParamILSMessage(ParamILSMessageType.Restart, thetaILS, 0.));
      }
    }
  }
View Full Code Here

Examples of org.jamesii.simspex.exploration.ils.observation.ParamILSMessage

        // iterating over the neighborhood of the actual best
        // configuration
        for (ParameterBlock nextNeighbour : neighbourhood) {
          if (better(nextNeighbour, config)) {
            config = nextNeighbour;
            changed(new ParamILSMessage(
                ParamILSMessageType.IterativeImprovement, config,
                getConsistentEstimator(config, getInformationSource()
                    .getNumberOfRuns(config)), getConsistentEstimator(config,
                    getInformationSource().getNumberOfRuns(config))));
          }
View Full Code Here

Examples of org.jamesii.simspex.exploration.ils.observation.ParamILSMessage

   */
  private void maintainInvariant(ParameterBlock configuration, int numRuns) {
    if (!ParameterBlocks.equal(configuration, minimumConfiguration)
        && getInformationSource().getNumberOfRuns(minimumConfiguration) < numRuns) {
      objective(minimumConfiguration, numRuns, getMaxExecutionTime());
      changed(new ParamILSMessage(ParamILSMessageType.MinimumMaintained,
          minimumConfiguration, getConsistentEstimator(minimumConfiguration,
              numRuns)));
    }
  }
View Full Code Here

Examples of org.jamesii.simspex.exploration.ils.observation.ParamILSMessage

      double cost =
          calculateCosts(configuration, i,
              calculateResourceCap(n, bound, sumOfCosts));
      sumOfCosts += cost;
      if (cost >= getMaxExecutionTime() || sumOfCosts > bound * n) {
        changed(new ParamILSMessage(ParamILSMessageType.PerformanceEstimation,
            configuration, MAX_POSSIBLE_OBJECTIVE));
        return MAX_POSSIBLE_OBJECTIVE + (n + 1 - i);
      }
    }
    changed(new ParamILSMessage(ParamILSMessageType.PerformanceEstimation,
        configuration, sumOfCosts / n));
    // checking whether configuration is better then minimum
    if (checkMinimumConfiguration(sumOfCosts / n, n)) {
      setMinimumConfiguration(configuration);
    }
View Full Code Here

Examples of org.jamesii.simspex.exploration.ils.observation.ParamILSMessage

   *          the new minimum configuration
   */
  private void setMinimumConfiguration(ParameterBlock minimumConfiguration) {
    if (!shallTerminate()
        && getInformationSource().getNumberOfRuns(minimumConfiguration) != 0) {
      changed(new ParamILSMessage(
          ParamILSMessageType.MinimumChanged,
          minimumConfiguration,
          getConsistentEstimator(minimumConfiguration, getInformationSource()
              .getNumberOfRuns(minimumConfiguration)),
          getConsistentEstimator(this.minimumConfiguration,
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.