Commit ed21ea08 authored by Jérome Perrin's avatar Jérome Perrin

ACO can use order delay, as long as due date is passed

parent 9dbc9ab2
......@@ -49,7 +49,7 @@ class Simulation(DefaultSimulation):
#id the class is Job
if elementClass=='Dream.Job':
results=element['results']
delay = float(results.get('completionTime', "0"))
delay = float(results.get('delay', "0"))
totalDelay += delay
return totalDelay
......
......@@ -59,7 +59,6 @@ class Simulation(ACO.Simulation):
"_class": 'Dream.OrderDecomposition',
"name": 'Decompo'
}
# XXX remove default machines etc ?
conf["Dream-Configuration"]["gui"]["wip_part_spreadsheet"] = 1
conf["Dream-Configuration"]["gui"]["job_schedule_spreadsheet"] = 1
conf["Dream-Configuration"]["gui"]["job_gantt"] = 1
......@@ -180,6 +179,7 @@ class Simulation(ACO.Simulation):
order_dict["id"] = "%i" % i # XXX hack, we use it in UI to retrieve spreadsheet line
order_dict["manager"] = project_manager
order_dict["name"] = order_id
order_dict["dueDate"] = due_date
# XXX make it dynamic by writing a function that will reuse the
# code available a bit after
order_dict["route"] = self.getRouteList(sequence_list, processing_time_list,
......@@ -212,4 +212,4 @@ class Simulation(ACO.Simulation):
del(data['wip_part_spreadsheet'])
print "PartJobShop, data after preprocess :"
print json.dumps(data,indent=4)
return data
\ No newline at end of file
return data
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