从间隔加载数据

(函数来自 pyomo.contrib.mpc.interfaces.load_data)

pyomo.contrib.mpc.interfaces.load_data.load_data_from_interval(data, model, time, tolerance=0.0, prefer_left=True, exclude_left_endpoint=True, exclude_right_endpoint=False)[source]

一个将IntervalData加载到模型的函数

在指定的时间点将值加载到指定的变量中,这些时间点位于指定的区间内。如果时间点位于两个区间的边界上,默认使用左侧的区间。通常,区间应被视为半开区间,即应排除左侧或右侧的端点之一。这可以通过相应的可选参数来强制执行。

Parameters:
  • 数据 (IntervalData)

  • 模型 (BlockData)

  • 时间 (可迭代)

  • 容差 (浮点数)

  • prefer_left (布尔值)

  • exclude_left_endpoint (Bool)

  • exclude_right_endpoint (Bool)