pub fn orders(
schedule: &Schedule,
starts: &[OffsetDateTime],
expected: &[f64],
band: &[(f64, f64)],
market: &Market,
) -> Result<Vec<Order>, PlanError>Expand description
One limit order per unit with a net flow, for the net volume, with protective limits: a sell at or above the lowest scenario price, a buy at or below the highest. Each order carries the expected price and the water value that explain it.
ยงErrors
PlanError::Limits if a number cannot be quantised (a solver failure).