ObjectivePreparation#
- class ObjectivePreparation#
Convert the active objective to
targetduring Preparation.Invariants#
The immutable target records the solver-facing sense requested by Preparation.
>>> from ommx import ObjectivePreparation, Sense >>> preparation = ObjectivePreparation(target=Sense.Minimize) >>> assert preparation.target == Sense.Minimize
- __eq__(other: object, /) bool#
- __new__(*, target: Sense) ObjectivePreparation#
- property target: Sense#
Read-only property.