Commit 16248954 authored by Jérome Perrin's avatar Jérome Perrin

DemandPlanning: make a GUI class

parent fe11a349
...@@ -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
''' '''
......
...@@ -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
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment