Package org.jamesii.asf.portfolios.ga.fitness

Examples of org.jamesii.asf.portfolios.ga.fitness.SimpleFitness


   * number of generated Individuals in the final pool is correct; each
   * individual in the final pool is meets the MIN_SIZE-MAX_SIZE-Criterion.
   */
  public void testSimple() {
    gaps.setAbortCriterion(new GenerationCountAbort(GEN_COUNT));
    gaps.setFitness(new SimpleFitness());
    gaps.setNumIndividuals(NUM_OF_IND);
    gaps.portfolio(problemDescription);
    gaps.setIndividualFactory(FACTORY_INDIVIDUAL);

    SimSystem.report(Level.INFO,
View Full Code Here


  /**
   * Test to check the AbortionCriterion (@link WallClockTimeAbort).
   */
  public void testWallClock() {
    StopWatch watch = new StopWatch();
    gaps.setFitness(new SimpleFitness());
    gaps.setNumIndividuals(NUM_OF_IND);
    watch.start();
    gaps.setAbortCriterion(new WallClockTimeAbort(MILLISECONDS));
    gaps.portfolio(problemDescription);
    watch.stop();
View Full Code Here

TOP

Related Classes of org.jamesii.asf.portfolios.ga.fitness.SimpleFitness

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.