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
40fb02fc
Commit
40fb02fc
authored
Mar 03, 2015
by
Georgios Dagkakis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
track how much time PuLP requires
parent
5fa377f1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
dream/simulation/Globals.py
dream/simulation/Globals.py
+1
-0
dream/simulation/opAss_LPmethod.py
dream/simulation/opAss_LPmethod.py
+6
-1
No files found.
dream/simulation/Globals.py
View file @
40fb02fc
...
@@ -124,6 +124,7 @@ class G:
...
@@ -124,6 +124,7 @@ class G:
pendingEntities
=
[]
pendingEntities
=
[]
env
=
simpy
.
Environment
()
env
=
simpy
.
Environment
()
totalPulpTime
=
0
# temporary to track how much time PuLP needs to run
# =======================================================================
# =======================================================================
# method to move entities exceeding a certain safety stock
# method to move entities exceeding a certain safety stock
...
...
dream/simulation/opAss_LPmethod.py
View file @
40fb02fc
...
@@ -11,6 +11,10 @@ def opAss_LP(machineList, PBlist, PBskills, previousAssignment={}, weightFactors
...
@@ -11,6 +11,10 @@ def opAss_LP(machineList, PBlist, PBskills, previousAssignment={}, weightFactors
import
copy
import
copy
import
glob
import
glob
import
os
import
os
import
time
from
Globals
import
G
startPulp
=
time
.
time
()
machines
=
machineList
.
keys
()
machines
=
machineList
.
keys
()
sumWIP
=
float
(
sum
([
machineList
[
mach
][
'WIP'
]
for
mach
in
machines
]))
sumWIP
=
float
(
sum
([
machineList
[
mach
][
'WIP'
]
for
mach
in
machines
]))
...
@@ -185,7 +189,8 @@ def opAss_LP(machineList, PBlist, PBskills, previousAssignment={}, weightFactors
...
@@ -185,7 +189,8 @@ def opAss_LP(machineList, PBlist, PBskills, previousAssignment={}, weightFactors
files
=
glob
.
glob
(
'*.lp'
)
files
=
glob
.
glob
(
'*.lp'
)
for
f
in
files
:
for
f
in
files
:
os
.
remove
(
f
)
os
.
remove
(
f
)
G
.
totalPulpTime
+=
time
.
time
()
-
startPulp
return
PBallocation
return
PBallocation
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