Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
dream
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
dream
Commits
ed21ea08
Commit
ed21ea08
authored
Feb 28, 2014
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ACO can use order delay, as long as due date is passed
parent
9dbc9ab2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
dream/simulation/GUI/ACO.py
dream/simulation/GUI/ACO.py
+1
-1
dream/simulation/GUI/PartJobShop.py
dream/simulation/GUI/PartJobShop.py
+2
-2
No files found.
dream/simulation/GUI/ACO.py
View file @
ed21ea08
...
...
@@ -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
...
...
dream/simulation/GUI/PartJobShop.py
View file @
ed21ea08
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment