building_model.py 文件源码

python
阅读 24 收藏 0 点赞 0 评论 0

项目:prodyn 作者: yabata 项目源码 文件源码
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 1 state - temperature
###################################
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号