间隔数据
(类来自 pyomo.contrib.mpc.data.interval_data)
- class pyomo.contrib.mpc.data.interval_data.IntervalData(data, intervals, time_set=None, context=None)[源代码]
基础类:
_DynamicDataBase方法
__init__(数据, 间隔[, 时间集, 上下文])处理数据字典的键。
concatenate(other[, tolerance])使用提供的IntervalData中的间隔和变量值扩展间隔列表和变量数据列表
contains_key(key[, context])返回此对象的字典是否包含给定的键。
extract_variables(variables[, context, ...])仅保留指定的变量。
get_cuid(key[, context])获取与提供的键对应的时间索引CUID
get_data()返回一个将CUID映射到值的字典
get_data_at_interval_indices(indices)get_data_at_time(time[, tolerance, prefer_left])get_data_from_key(key[, context])返回与给定键关联的值。
get_intervals()shift_time_points(offset)对存储的时间点应用偏移量。
转换为可序列化为json的对象。
update_data(other[, context])更新此对象的数据字典。
成员文档
- contains_key(key, context=None)
返回此对象的字典是否包含给定的键。
- get_cuid(key, context=None)
获取与提供的键对应的时间索引CUID
- get_data()
返回一个将CUID映射到值的字典
- get_data_from_key(key, context=None)
返回与给定键关联的值。
- update_data(other, context=None)
更新此对象的数据字典。