Package org.jamesii.asf.portfolios.ga.abort

Examples of org.jamesii.asf.portfolios.ga.abort.ListOrAbort


   * WallClock Criterion.
   */
  public void testListOrAbort() {
    gaps.setFitness(TEST_FITNESS_MAX);
    gaps.setNumIndividuals(NUM_OF_IND);
    ListOrAbort abortList = new ListOrAbort();
    abortList.addCriterion(new GenerationCountAbort(GEN_COUNT));
    abortList.addCriterion(new MaxFitnessAbort(MAXIMIZE_FITNESS));

    StopWatch watch = new StopWatch();
    watch.start();

    abortList.addCriterion(new WallClockTimeAbort(MILLISECONDS));
    gaps.setAbortCriterion(abortList);
    gaps.portfolio(problemDescription);
    watch.stop();

    assertTrue(
View Full Code Here

TOP

Related Classes of org.jamesii.asf.portfolios.ga.abort.ListOrAbort

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.