Package jsprit.core.algorithm.termination

Examples of jsprit.core.algorithm.termination.TimeTermination


        if(basedOn.equals("time")){
            log.info("set prematureBreak based on time");
            String timeString = config.getString("time");
            if(timeString == null) throw new IllegalStateException("time is missing");
            double time = Double.valueOf(timeString);
            TimeTermination timeBreaker = new TimeTermination(time);
            algorithmListeners.add(new PrioritizedVRAListener(Priority.LOW, timeBreaker));
            return timeBreaker;
        }
        if(basedOn.equals("variationCoefficient")){
            log.info("set prematureBreak based on variation coefficient");
View Full Code Here


    if(basedOn.equals("time")){
      log.info("set prematureBreak based on time");
      String timeString = config.getString("prematureBreak.time");
      if(timeString == null) throw new IllegalStateException("prematureBreak.time is missing");
      double time = Double.valueOf(timeString);
      TimeTermination timeBreaker = new TimeTermination(time);
      algorithmListeners.add(new PrioritizedVRAListener(Priority.LOW, timeBreaker));
      return timeBreaker;
    }
    if(basedOn.equals("variationCoefficient")){
      log.info("set prematureBreak based on variation coefficient");
View Full Code Here

TOP

Related Classes of jsprit.core.algorithm.termination.TimeTermination

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.