optiwindnet.typesยถ

Types shared across OptiWindNetโ€™s routing and solver layers.

Module Contentsยถ

class optiwindnet.types.Topology[source]ยถ

Bases: enum.StrEnum

Architecture of the subtrees in a solution.

ModelOptions and TerseLinks accept the equivalent str and coerce it. Past them the member itself is what travels: every producer stores it in S.graph['topology'] and every consumer branches on is, which an equal str would silently fail.

Initialize self. See help(type(self)) for accurate signature.

RADIAL[source]ยถ
BRANCHED[source]ยถ
RINGED[source]ยถ
DEFAULT[source]ยถ
class optiwindnet.types.FeederRoute[source]ยถ

Bases: enum.StrEnum

If feeder routes must be 'straight' or can be detoured ('segmented').

Initialize self. See help(type(self)) for accurate signature.

STRAIGHT[source]ยถ
SEGMENTED[source]ยถ
DEFAULT[source]ยถ
exception optiwindnet.types.OWNWarmupFailed[source]ยถ

Bases: Exception

A warm start is unusable for the model or solver it was given to.

Initialize self. See help(type(self)) for accurate signature.