Package jsprit.core.algorithm.termination

Examples of jsprit.core.algorithm.termination.VariationCoefficientTermination


            String iterationsString = config.getString("iterations");
            if(thresholdString == null) throw new IllegalStateException("threshold is missing");
            if(iterationsString == null) throw new IllegalStateException("iterations is missing");
            double threshold = Double.valueOf(thresholdString);
            int iterations = Integer.valueOf(iterationsString);
            VariationCoefficientTermination variationCoefficientBreaker = new VariationCoefficientTermination(iterations, threshold);
            algorithmListeners.add(new PrioritizedVRAListener(Priority.LOW, variationCoefficientBreaker));
            return variationCoefficientBreaker;
        }
        throw new IllegalStateException("prematureBreak basedOn " + basedOn + " is not defined");
    }
View Full Code Here


      String iterationsString = config.getString("prematureBreak.iterations");
      if(thresholdString == null) throw new IllegalStateException("prematureBreak.threshold is missing");
      if(iterationsString == null) throw new IllegalStateException("prematureBreak.iterations is missing");
      double threshold = Double.valueOf(thresholdString);
      int iterations = Integer.valueOf(iterationsString);
      VariationCoefficientTermination variationCoefficientBreaker = new VariationCoefficientTermination(iterations, threshold);
      algorithmListeners.add(new PrioritizedVRAListener(Priority.LOW, variationCoefficientBreaker));
      return variationCoefficientBreaker;
    }
    throw new IllegalStateException("prematureBreak basedOn " + basedOn + " is not defined");
  }
View Full Code Here

TOP

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

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.