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
03c6e87e
Commit
03c6e87e
authored
Nov 11, 2015
by
Georgios Dagkakis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ants to be evaluated based also on units that lie in the decomposition before the exit
parent
a468d6ac
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
dream/plugins/Batches/BatchesACO.py
dream/plugins/Batches/BatchesACO.py
+6
-0
dream/plugins/Batches/BatchesStochasticACO.py
dream/plugins/Batches/BatchesStochasticACO.py
+8
-0
No files found.
dream/plugins/Batches/BatchesACO.py
View file @
03c6e87e
...
@@ -28,6 +28,12 @@ class BatchesACO(ACO):
...
@@ -28,6 +28,12 @@ class BatchesACO(ACO):
unitsThroughput
=
unitsThroughput
[
0
]
unitsThroughput
=
unitsThroughput
[
0
]
if
not
unitsThroughput
:
if
not
unitsThroughput
:
unitsThroughput
=
element
[
'results'
][
'throughput'
][
0
]
unitsThroughput
=
element
[
'results'
][
'throughput'
][
0
]
# below checking the predecessors of exit. If a predecessor is reassembly and
# has WIP add this also in the throughput
for
objectId
in
self
.
getPredecessors
(
ant
[
'input'
],
element
[
'id'
]):
for
record
in
result
[
'elementList'
]:
if
record
[
'id'
]
==
objectId
and
'Reassembly'
in
record
[
'_class'
]:
unitsThroughput
+=
record
[
'results'
].
get
(
'final_WIP'
,[
0
])[
0
]
# return the negative value since they are ranked this way. XXX discuss this
# return the negative value since they are ranked this way. XXX discuss this
return
-
unitsThroughput
return
-
unitsThroughput
...
...
dream/plugins/Batches/BatchesStochasticACO.py
View file @
03c6e87e
...
@@ -64,6 +64,14 @@ class BatchesStochasticACO(BatchesACO):
...
@@ -64,6 +64,14 @@ class BatchesStochasticACO(BatchesACO):
#id the class is Exit get the unitsThroughput
#id the class is Exit get the unitsThroughput
if
element_family
==
'Exit'
:
if
element_family
==
'Exit'
:
unitsThroughput
=
element
[
'results'
].
get
(
'unitsThroughput'
,
None
)
unitsThroughput
=
element
[
'results'
].
get
(
'unitsThroughput'
,
None
)
# below checking the predecessors of exit. If a predecessor is reassembly and
# has WIP add this also in the throughput
for
objectId
in
self
.
getPredecessors
(
ant
[
'input'
],
element
[
'id'
]):
for
record
in
result
[
'elementList'
]:
if
record
[
'id'
]
==
objectId
and
'Reassembly'
in
record
[
'_class'
]:
finalWIPList
=
record
[
'results'
].
get
(
'final_WIP'
,[
0
])
for
i
in
range
(
len
(
finalWIPList
)):
unitsThroughput
[
i
]
+=
finalWIPList
[
i
]
self
.
outputSheet
.
write
(
self
.
rowIndex
,
2
,
'Units Throughput Per Replication'
)
self
.
outputSheet
.
write
(
self
.
rowIndex
,
2
,
'Units Throughput Per Replication'
)
col
=
3
col
=
3
for
element
in
unitsThroughput
:
for
element
in
unitsThroughput
:
...
...
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