Class RuinRadialMultipleCenters
java.lang.Object
com.graphhopper.jsprit.core.algorithm.ruin.AbstractRuinStrategy
com.graphhopper.jsprit.core.algorithm.ruin.RuinRadialMultipleCenters
- All Implemented Interfaces:
RuinStrategy
Deprecated.
RuinStrategy that ruins the neighborhood of a randomly selected job. The size and the structure of the neighborhood is defined by
the share of jobs to be removed and the distance between jobs (where distance not necessarily mean Euclidean distance but an arbitrary
measure).
- Author:
- stefan
-
Field Summary
Fields inherited from class com.graphhopper.jsprit.core.algorithm.ruin.AbstractRuinStrategy
jobFilter, random, ruinShareFactory -
Constructor Summary
ConstructorsConstructorDescriptionRuinRadialMultipleCenters(VehicleRoutingProblem vrp, int neighborhoodSize, JobDistance jobDistance) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionruinRoutes(Collection<VehicleRoute> vehicleRoutes) Deprecated.Ruins the collection of vehicleRoutes, i.e.voidsetNumberOfRuinCenters(int noCenters) Deprecated.toString()Deprecated.Methods inherited from class com.graphhopper.jsprit.core.algorithm.ruin.AbstractRuinStrategy
addListener, filterJobs, getListeners, getRuinShareFactory, removeJob, removeJob, removeListener, ruin, setJobFilter, setRandom, setRuinShareFactory
-
Constructor Details
-
RuinRadialMultipleCenters
public RuinRadialMultipleCenters(VehicleRoutingProblem vrp, int neighborhoodSize, JobDistance jobDistance) Deprecated.
-
-
Method Details
-
setNumberOfRuinCenters
public void setNumberOfRuinCenters(int noCenters) Deprecated. -
toString
Deprecated. -
ruinRoutes
Deprecated.Ruins the collection of vehicleRoutes, i.e. removes a share of jobs. First, it selects a job randomly. Second, it identifies its neighborhood. And finally, it removes the neighborhood plus the randomly selected job from the number of vehicleRoutes. All removed jobs are then returned as a collection.- Specified by:
ruinRoutesin classAbstractRuinStrategy
-