Commit 610cf71e authored by Jérome Perrin's avatar Jérome Perrin

ACO: an order produced before due date should not be better than an order produced on due date

parent 5029a7a2
......@@ -50,7 +50,9 @@ class Simulation(DefaultSimulation):
if elementClass=='Dream.Job':
results=element['results']
delay = float(results.get('delay', "0"))
totalDelay += delay
# A negative delay would mean we are ahead of schedule. This
# should not be considered better than being on time.
totalDelay += max(delay, 0)
return totalDelay
......
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