mirror of
https://github.com/graphhopper/jsprit.git
synced 2020-01-24 07:45:05 +01:00
internal improvement of insertionCalc
This commit is contained in:
parent
59319ff355
commit
211d56d928
14 changed files with 120 additions and 70 deletions
27
jsprit-core/src/test/java/algorithms/BuildFastCVRPTest.java
Normal file
27
jsprit-core/src/test/java/algorithms/BuildFastCVRPTest.java
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
package algorithms;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
import basics.VehicleRoutingAlgorithm;
|
||||
import basics.VehicleRoutingProblem;
|
||||
|
||||
public class BuildFastCVRPTest {
|
||||
|
||||
@Test
|
||||
public void buildFastCVRPAlgoTest(){
|
||||
|
||||
VehicleRoutingProblem vrp = null;
|
||||
|
||||
VehicleRoutingAlgorithm vra = createVRA(vrp);
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
public VehicleRoutingAlgorithm createVRA(VehicleRoutingProblem vrp){
|
||||
VehicleFleetManager fleetManager = new InfiniteVehicles(vrp.getVehicles());
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -189,7 +189,7 @@ public class TestIterateRouteForwardInTime {
|
|||
forwardInTime.iterate(vehicleRoute);
|
||||
|
||||
assertEquals(40.0, states.getRouteStates(vehicleRoute).getState(StateTypes.COSTS).toDouble(), 0.05);
|
||||
assertEquals(40.0, vehicleRoute.getEnd().getEndTime(),0.05);
|
||||
assertEquals(40.0, vehicleRoute.getEnd().getArrTime(),0.05);
|
||||
assertEquals(50.0, vehicleRoute.getEnd().getTheoreticalLatestOperationStartTime(),0.05);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -158,7 +158,7 @@ public class TestTourStateUpdaterWithService {
|
|||
updateStates.update(vehicleRoute);
|
||||
|
||||
assertEquals(40.0, states.getRouteState(vehicleRoute, StateTypes.COSTS).toDouble(), 0.05);
|
||||
assertEquals(40.0, vehicleRoute.getEnd().getEndTime(),0.05);
|
||||
assertEquals(40.0, vehicleRoute.getEnd().getArrTime(),0.05);
|
||||
assertEquals(50.0, vehicleRoute.getEnd().getTheoreticalLatestOperationStartTime(),0.05);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue