pub fn disaggregate<T: Iterator<Item = Point>>(
points: T,
min: f64,
max: f64,
) -> Option<impl Iterator<Item = Result<Segment, Segment>>>Expand description
If a demand curve is an aggregation of individual demand segments, then we can disaggregate a demand curve into these segments. This is useful for constructing the optimization program.