Class VariationCoefficientTermination

java.lang.Object
com.graphhopper.jsprit.core.algorithm.termination.VariationCoefficientTermination
All Implemented Interfaces:
AlgorithmStartsListener, IterationEndsListener, IterationStartsListener, VehicleRoutingAlgorithmListener, PrematureAlgorithmTermination

public class VariationCoefficientTermination extends Object implements PrematureAlgorithmTermination, IterationStartsListener, AlgorithmStartsListener, IterationEndsListener
Terminates algorithm prematurely based on variationCoefficient (http://en.wikipedia.org/wiki/Coefficient_of_variation).

Note, that this must be registered as AlgorithmListener
It will be activated by:

algorithm.setPrematureAlgorithmTermination(this);
algorithm.addListener(this);

Author:
stefan schroeder