mirror of
https://github.com/graphhopper/jsprit.git
synced 2020-01-24 07:45:05 +01:00
change to public visibility
This commit is contained in:
parent
1d999c4a28
commit
2244923575
3 changed files with 23 additions and 2 deletions
|
|
@ -40,7 +40,7 @@ import java.util.concurrent.*;
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
final class BestInsertionConcurrent implements InsertionStrategy{
|
public final class BestInsertionConcurrent implements InsertionStrategy{
|
||||||
|
|
||||||
static class Batch {
|
static class Batch {
|
||||||
List<VehicleRoute> routes = new ArrayList<VehicleRoute>();
|
List<VehicleRoute> routes = new ArrayList<VehicleRoute>();
|
||||||
|
|
|
||||||
|
|
@ -7,8 +7,10 @@ import java.util.Iterator;
|
||||||
/**
|
/**
|
||||||
* Created by schroeder on 07/01/15.
|
* Created by schroeder on 07/01/15.
|
||||||
*/
|
*/
|
||||||
interface JobNeighborhoods {
|
public interface JobNeighborhoods {
|
||||||
|
|
||||||
public Iterator<Job> getNearestNeighborsIterator(int nNeighbors, Job neighborTo);
|
public Iterator<Job> getNearestNeighborsIterator(int nNeighbors, Job neighborTo);
|
||||||
|
|
||||||
|
public void initialise();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,19 @@
|
||||||
|
package jsprit.core.algorithm.ruin;
|
||||||
|
|
||||||
|
import jsprit.core.algorithm.ruin.distance.JobDistance;
|
||||||
|
import jsprit.core.problem.VehicleRoutingProblem;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Created by schroeder on 05/03/15.
|
||||||
|
*/
|
||||||
|
public class JobNeighborhoodsFactory {
|
||||||
|
|
||||||
|
public JobNeighborhoods createNeighborhoods(VehicleRoutingProblem vrp, JobDistance jobDistance){
|
||||||
|
return new JobNeighborhoodsImpl(vrp,jobDistance);
|
||||||
|
}
|
||||||
|
|
||||||
|
public JobNeighborhoods createNeighborhoods(VehicleRoutingProblem vrp, JobDistance jobDistance, int capacity){
|
||||||
|
return new JobNeighborhoodsImplWithCapRestriction(vrp,jobDistance,capacity);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue