public class BestInsertionBuilder extends Object
| Constructor and Description |
|---|
BestInsertionBuilder(VehicleRoutingProblem vrp,
VehicleFleetManager vehicleFleetManager,
StateManager stateManager,
ConstraintManager constraintManager) |
| Modifier and Type | Method and Description |
|---|---|
InsertionStrategy |
build() |
BestInsertionBuilder |
considerFixedCosts(double weightOfFixedCosts) |
BestInsertionBuilder |
setActivityInsertionCostCalculator(ActivityInsertionCostsCalculator activityInsertionCostsCalculator) |
void |
setAllowVehicleSwitch(boolean allowVehicleSwitch) |
BestInsertionBuilder |
setConcurrentMode(ExecutorService executor,
int nuOfThreads) |
BestInsertionBuilder |
setLocalLevel() |
BestInsertionBuilder |
setLocalLevel(boolean addDefaultMarginalCostCalculation)
If addDefaulMarginalCostCalculation is false, no calculator is set which implicitly assumes that marginal cost calculation
is controlled by your custom soft constraints.
|
BestInsertionBuilder |
setRouteLevel(int forwardLooking,
int memory) |
BestInsertionBuilder |
setRouteLevel(int forwardLooking,
int memory,
boolean addDefaultMarginalCostCalculation) |
public BestInsertionBuilder(VehicleRoutingProblem vrp, VehicleFleetManager vehicleFleetManager, StateManager stateManager, ConstraintManager constraintManager)
public BestInsertionBuilder setRouteLevel(int forwardLooking, int memory)
public BestInsertionBuilder setRouteLevel(int forwardLooking, int memory, boolean addDefaultMarginalCostCalculation)
public BestInsertionBuilder setLocalLevel()
public BestInsertionBuilder setLocalLevel(boolean addDefaultMarginalCostCalculation)
addDefaultMarginalCostCalculation - public BestInsertionBuilder considerFixedCosts(double weightOfFixedCosts)
public BestInsertionBuilder setActivityInsertionCostCalculator(ActivityInsertionCostsCalculator activityInsertionCostsCalculator)
public BestInsertionBuilder setConcurrentMode(ExecutorService executor, int nuOfThreads)
public InsertionStrategy build()
public void setAllowVehicleSwitch(boolean allowVehicleSwitch)
Copyright © 2013–2024. All rights reserved.