mirror of
https://github.com/graphhopper/jsprit.git
synced 2020-01-24 07:45:05 +01:00
misc
This commit is contained in:
parent
4e6d91ac01
commit
0721274137
1 changed files with 2 additions and 2 deletions
|
|
@ -61,8 +61,8 @@ public class VehicleDependentTimeWindowConstraints implements HardActivityStateL
|
||||||
else{
|
else{
|
||||||
//try to get latest_operation_start_time of newVehicle
|
//try to get latest_operation_start_time of newVehicle
|
||||||
latestArrTimeAtNextAct = states.getActivityState(nextAct, iFacts.getNewVehicle(), StateFactory.LATEST_OPERATION_START_TIME ,Double.class);
|
latestArrTimeAtNextAct = states.getActivityState(nextAct, iFacts.getNewVehicle(), StateFactory.LATEST_OPERATION_START_TIME ,Double.class);
|
||||||
if(latestArrTimeAtNextAct == null) //try to get latest_operation_start_time of currVehicle
|
// if(latestArrTimeAtNextAct == null) //try to get latest_operation_start_time of currVehicle
|
||||||
latestArrTimeAtNextAct = states.getActivityState(nextAct, iFacts.getRoute().getVehicle(), StateFactory.LATEST_OPERATION_START_TIME ,Double.class);
|
// latestArrTimeAtNextAct = states.getActivityState(nextAct, iFacts.getRoute().getVehicle(), StateFactory.LATEST_OPERATION_START_TIME ,Double.class);
|
||||||
if(latestArrTimeAtNextAct == null) //otherwise set it to theoretical_latest_operation_startTime
|
if(latestArrTimeAtNextAct == null) //otherwise set it to theoretical_latest_operation_startTime
|
||||||
latestArrTimeAtNextAct=nextAct.getTheoreticalLatestOperationStartTime();
|
latestArrTimeAtNextAct=nextAct.getTheoreticalLatestOperationStartTime();
|
||||||
nextActLocation = nextAct.getLocationId();
|
nextActLocation = nextAct.getLocationId();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue