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 { ...@@ -329,7 +329,7 @@ public class InfeasibilityInspector {
} }
if (Objects.requireNonNull(suffixCfg).getSuffixNodes().isEmpty()) { if (Objects.requireNonNull(suffixCfg).getSuffixNodes().isEmpty()) {
possibleTimeSlots.add(suffixCfg.getRemainingInnerDelay()); possibleTimeSlots.add(destinationNode.getDelay() + suffixCfg.getRemainingInnerDelay());
return possibleTimeSlots; return possibleTimeSlots;
} else { } else {
......
...@@ -277,7 +277,8 @@ public class InfeasibleEdgeInspector implements Initializable { ...@@ -277,7 +277,8 @@ public class InfeasibleEdgeInspector implements Initializable {
suffixChain.add(representative); suffixChain.add(representative);
suffixChain.addAll(getSuffixEdgeChain(outgoingEdgesByNode)); suffixChain.addAll(getSuffixEdgeChain(outgoingEdgesByNode));
int remainingDelay = suffixCfg.getRemainingInnerDelay() - problematicTimeslot; int remainingDelay = suffixCfg.getRemainingInnerDelay() - (problematicTimeslot - startCfg
.getDestinationNode().getDelay());
PlannedEdge.distributeDelay(suffixChain, remainingDelay, rng); 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