DegradationElement

class flexcore.config.spec.DegradationElement(*, 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, kind: Literal['degradation'], unit: str, costing_package: str | None = 'auto')

A priced degradation (wear) penalty on a unit’s variables.

model_config = {'extra': 'forbid'}

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