Skip to main content

BUDGET_TOLERANCE

Constant BUDGET_TOLERANCE 

Source
pub const BUDGET_TOLERANCE: f64 = 1e-3;
Expand description

How far an energy budget may be off, as a share of the supply. The electrical side closes to ELECTRICAL_TOLERANCE, so what is left is the machine’s own balance: its losses are taken at the end of each step and summed times the step, the trapezoid rule but for the ends (see testkit::loss_budget).