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
795e0b24
Commit
795e0b24
authored
Sep 02, 2014
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DemandPlanning: port to Simpy3
Conflicts: dream/simulation/LineGenerationJSON.py
parent
16248954
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
dream/simulation/AllocationManagement.py
dream/simulation/AllocationManagement.py
+1
-2
dream/simulation/LineGenerationJSON.py
dream/simulation/LineGenerationJSON.py
+5
-3
No files found.
dream/simulation/AllocationManagement.py
View file @
795e0b24
...
...
@@ -14,7 +14,6 @@ import xlrd
from
AllocationRoutine
import
AllocationRoutine
from
CoreObject
import
CoreObject
from
Globals
import
G
from
SimPy.Simulation
import
hold
from
ObjectInterruption
import
ObjectInterruption
from
FutureDemandCreator
import
FutureDemandCreator
...
...
@@ -29,7 +28,7 @@ class AllocationManagement(ObjectInterruption):
def
run
(
self
):
self
.
FDC
.
run
()
yield
hold
,
self
,
0
yield
G
.
env
.
timeout
(
0
)
for
kWeek
in
range
(
int
(
G
.
maxSimTime
)):
# activate allocation procedure for future items at target week
procedureFuture
=
AllocationRoutine
(
initialWeek
=
kWeek
,
itemType
=
1
)
...
...
dream/simulation/LineGenerationJSON.py
View file @
795e0b24
...
...
@@ -382,6 +382,7 @@ def createObjectInterruptions():
G
.
ObjectInterruptionList
.
append
(
SS
)
G
.
ShiftSchedulerList
.
append
(
SS
)
# ===========================================================================
# creates the entities that are wip
# ===========================================================================
...
...
@@ -541,9 +542,10 @@ def initializeObjects():
# activates all the objects
# ===========================================================================
def
activateObjects
():
for
element
in
G
.
ObjList
+
G
.
ObjectInterruptionList
:
G
.
env
.
process
(
element
.
run
())
# XXX EventGeneratorList
for
element
in
G
.
ObjList
+
G
.
ObjectInterruptionList
+
G
.
AllocationManagementList
:
G
.
env
.
process
(
element
.
run
())
# ===========================================================================
# the main script that is ran
# ===========================================================================
...
...
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