Commit 28908a72 authored by Sebastian Vollbrecht's avatar Sebastian Vollbrecht

Fixed a bug which caused negative delays to be distributed over the infeasible subgraph's edges.

parent c4bd1697
......@@ -329,7 +329,7 @@ public class InfeasibilityInspector {
}
if (Objects.requireNonNull(suffixCfg).getSuffixNodes().isEmpty()) {
possibleTimeSlots.add(suffixCfg.getRemainingInnerDelay());
possibleTimeSlots.add(destinationNode.getDelay() + suffixCfg.getRemainingInnerDelay());
return possibleTimeSlots;
} else {
......
......@@ -277,7 +277,8 @@ public class InfeasibleEdgeInspector implements Initializable {
suffixChain.add(representative);
suffixChain.addAll(getSuffixEdgeChain(outgoingEdgesByNode));
int remainingDelay = suffixCfg.getRemainingInnerDelay() - problematicTimeslot;
int remainingDelay = suffixCfg.getRemainingInnerDelay() - (problematicTimeslot - startCfg
.getDestinationNode().getDelay());
PlannedEdge.distributeDelay(suffixChain, remainingDelay, rng);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment