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
16248954
Commit
16248954
authored
Sep 02, 2014
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DemandPlanning: make a GUI class
parent
fe11a349
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
189 additions
and
111 deletions
+189
-111
dream/simulation/AllocationManagement.py
dream/simulation/AllocationManagement.py
+2
-2
dream/simulation/FutureDemandCreator.py
dream/simulation/FutureDemandCreator.py
+1
-11
dream/simulation/GUI/DemandPlanning.py
dream/simulation/GUI/DemandPlanning.py
+186
-98
dream/simulation/GUI/inputs.xlsx
dream/simulation/GUI/inputs.xlsx
+0
-0
No files found.
dream/simulation/AllocationManagement.py
View file @
16248954
...
@@ -3,8 +3,8 @@ Created on 3 Oct 2013
...
@@ -3,8 +3,8 @@ Created on 3 Oct 2013
@author: Anna
@author: Anna
Basic implementation: runs the allocation routine for the future demand first
(one week at a time for the whole planning horizon) and the
Basic implementation: runs the allocation routine for the future demand first
PPOS after
(one week at a time for the whole planning horizon) and the
PPOS after
Equivalent to M2 in MATLAB functions
Equivalent to M2 in MATLAB functions
'''
'''
...
...
dream/simulation/FutureDemandCreator.py
View file @
16248954
...
@@ -49,21 +49,11 @@ class FutureDemandCreator():
...
@@ -49,21 +49,11 @@ class FutureDemandCreator():
G
.
PPOSLateness
.
append
(
0
)
G
.
PPOSLateness
.
append
(
0
)
G
.
PPOSEarliness
.
append
(
0
)
G
.
PPOSEarliness
.
append
(
0
)
G
.
Capacity
=
[]
wbin
=
xlrd
.
open_workbook
(
'GUI/inputs.xlsx'
)
sh
=
wbin
.
sheet_by_name
(
'Capacity'
)
nCols
=
sh
.
ncols
assert
(
nCols
==
G
.
planningHorizon
+
1
)
capacity
=
[]
for
i
in
range
(
1
,
nCols
):
capacity
.
append
(
sh
.
col_values
(
i
,
2
))
G
.
Capacity
=
capacity
G
.
currentCapacity
=
G
.
Capacity
G
.
currentCapacity
=
G
.
Capacity
# PPOS initial disaggregation profile
# PPOS initial disaggregation profile
G
.
demandFile
=
'GUI/DemandProfile.xlsx'
G
.
demandFile
=
(
'/home/jerome/src/dream/dream/simulation/GUI/DemandProfile.xlsx'
)
wbin
=
xlrd
.
open_workbook
(
G
.
demandFile
)
wbin
=
xlrd
.
open_workbook
(
G
.
demandFile
)
MAData
=
G
.
RouteDict
MAData
=
G
.
RouteDict
...
...
dream/simulation/GUI/DemandPlanning.py
View file @
16248954
This diff is collapsed.
Click to expand it.
dream/simulation/GUI/inputs.xlsx
deleted
100644 → 0
View file @
fe11a349
File deleted
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