DegradationSpec

class flexcore.config.schema.DegradationSpec(*, name: str, terms: Annotated[list[DegradationTermSpec], MinLen(min_length=1)], covered_cost: Annotated[float, Ge(ge=0), AllowInfNan(allow_inf_nan=False)] = 0.0, horizon_budget: Annotated[float | None, Ge(ge=0), AllowInfNan(allow_inf_nan=False)] = None, period_hours: Annotated[float | None, Gt(gt=0), AllowInfNan(allow_inf_nan=False)] = None)

A named, priced degradation penalty on a unit: a sum of wear-driver terms.

model_config = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].