Skip to main content

evaluate

Function evaluate 

Source
pub fn evaluate(
    plan: &PoolPlan,
    storage: &Storage,
    starts: &[OffsetDateTime],
    prices: &[f64],
    hours: f64,
) -> Result<Outcome, PlanError>
Expand description

Executes plan on paper against prices and compares it with perfect foresight.

ยงErrors

PlanError if the perfect-foresight problem cannot be solved.