mirror of
https://github.com/graphhopper/jsprit.git
synced 2020-01-24 07:45:05 +01:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
76902b4c73
3 changed files with 71 additions and 7 deletions
|
|
@ -0,0 +1,20 @@
|
|||
package com.graphhopper.jsprit.core.algorithm.ruin;
|
||||
|
||||
import com.graphhopper.jsprit.core.problem.VehicleRoutingProblem;
|
||||
|
||||
public class ClusterRuinStrategyFactory implements RuinStrategyFactory {
|
||||
|
||||
private int initialNumberJobsToRemove;
|
||||
private JobNeighborhoods jobNeighborhoods;
|
||||
|
||||
public ClusterRuinStrategyFactory(int initialNumberJobsToRemove, JobNeighborhoods jobNeighborhoods) {
|
||||
super();
|
||||
this.initialNumberJobsToRemove = initialNumberJobsToRemove;
|
||||
this.jobNeighborhoods = jobNeighborhoods;
|
||||
}
|
||||
|
||||
@Override
|
||||
public RuinStrategy createStrategy(VehicleRoutingProblem vrp) {
|
||||
return new RuinClusters(vrp, initialNumberJobsToRemove, jobNeighborhoods);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue