def read_data(file):
"""Read data about the system from the excel file and assign
it to different parameters
Args:
file: excel file, which stores all data about considered system
Returns:
cst: constants, which describe the system
srs: parameters, which are variable with time
U: list of possible decisions
states: values, which set number of states and characterize
all possible ones
"""
xls = pd.ExcelFile(file)
states = xls.parse('DP-States',index_col=[0])
cst = xls.parse('Constants',index_col=[0])['Value']
srs = xls.parse('Time-Series',index_col=[0])
U = xls.parse('DP-Decisions',index_col=[0])['Decisions'].values
return cst,srs,U,states
###################################
#for 2 states - temperature and heat-storage
###################################
评论列表
文章目录