Package org.encog.workbench.dialogs.population

Examples of org.encog.workbench.dialogs.population.EditNEATPopulationDialog


    }

  }

  private void performEdit() {
    EditNEATPopulationDialog dialog = new EditNEATPopulationDialog();

    dialog.getOldAgePenalty().setValue(this.population.getOldAgePenalty());
    dialog.getOldAgeThreshold().setValue(
        this.population.getOldAgeThreshold());
    dialog.getPopulationSize()
        .setValue(this.population.getPopulationSize());
    dialog.getSurvivalRate().setValue(this.population.getSurvivalRate());
    dialog.getYoungBonusAgeThreshold().setValue(
        this.population.getYoungBonusAgeThreshold());
    dialog.getYoungScoreBonus().setValue(
        this.population.getYoungScoreBonus());
    dialog.setNeatActivationFunction(this.population
        .getNeatActivationFunction());
    dialog.setOutputActivationFunction(this.population
        .getOutputActivationFunction());

    if (dialog.process()) {
      this.population.setOldAgePenalty(dialog.getOldAgePenalty()
          .getValue());
      this.population.setOldAgeThreshold(dialog.getOldAgeThreshold()
          .getValue());
      this.population.setPopulationSize(dialog.getPopulationSize()
          .getValue());
      this.population
          .setSurvivalRate(dialog.getSurvivalRate().getValue());
      this.population.setYoungBonusAgeThreshhold(dialog
          .getYoungBonusAgeThreshold().getValue());
      this.population.setYoungScoreBonus(dialog.getYoungScoreBonus()
          .getValue());
      this.population.setNeatActivationFunction(dialog
          .getNeatActivationFunction());
      this.population.setOutputActivationFunction(dialog
          .getOutputActivationFunction());
      this.pi.repaint();
    }
  }
View Full Code Here

TOP

Related Classes of org.encog.workbench.dialogs.population.EditNEATPopulationDialog

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.