Ejemplo n.º 1
0
  @Override
  /**
   * either get the next experiment from the current design or if the current design is done, start
   * a new and take the first one.
   */
  public IExperiment nextExperiment() throws InPUTException {
    if (currentDesignPointer == 0 || currentDesignPointer == currentDesignSize) {
      currentDesignPointer = 0;
      currentDesignSize = initNextDesign();
    }
    IExperiment nextExperiment = nextExperiment(currentDesignPointer);
    nextExperiment.setProblemFeatures(randomInstance());

    if (!nextExperiment.same(currentExperiment)) {
      currentExperiment = nextExperiment;
      amountInvestigatedConfigurations++;
    }

    return currentExperiment;
  }
Ejemplo n.º 2
0
 @Override
 protected void feedback(IExperiment experiment, IDesign newResult) throws InPUTException {
   experiment.addOutput(newResult);
   helper.feedbackSpot(newResult);
 }