mirror of
https://github.com/graphhopper/jsprit.git
synced 2020-01-24 07:45:05 +01:00
fix #209
This commit is contained in:
parent
f45caa0b3c
commit
18c655d3a8
1 changed files with 2 additions and 0 deletions
|
|
@ -143,6 +143,8 @@ final class BreakInsertionCalculator implements JobInsertionCostsCalculator {
|
||||||
List<Location> locations = Arrays.asList(prevAct.getLocation(), nextAct.getLocation());
|
List<Location> locations = Arrays.asList(prevAct.getLocation(), nextAct.getLocation());
|
||||||
for (Location location : locations) {
|
for (Location location : locations) {
|
||||||
breakAct2Insert.setLocation(location);
|
breakAct2Insert.setLocation(location);
|
||||||
|
breakAct2Insert.setTheoreticalEarliestOperationStartTime(breakToInsert.getTimeWindow().getStart());
|
||||||
|
breakAct2Insert.setTheoreticalLatestOperationStartTime(breakToInsert.getTimeWindow().getEnd());
|
||||||
ConstraintsStatus status = hardActivityLevelConstraint.fulfilled(insertionContext, prevAct, breakAct2Insert, nextAct, prevActStartTime);
|
ConstraintsStatus status = hardActivityLevelConstraint.fulfilled(insertionContext, prevAct, breakAct2Insert, nextAct, prevActStartTime);
|
||||||
if (status.equals(ConstraintsStatus.FULFILLED)) {
|
if (status.equals(ConstraintsStatus.FULFILLED)) {
|
||||||
//from job2insert induced costs at activity level
|
//from job2insert induced costs at activity level
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue