assert_disjoint_intervals

(function from pyomo.contrib.mpc.data.interval_data)

pyomo.contrib.mpc.data.interval_data.assert_disjoint_intervals(intervals)[source]

This function takes intervals in the form of tuples and makes sure that they are disjoint.

Parameters:

intervals (iterable) – Iterable of tuples, each containing the low and high values of an interval.