InequalityFormulation¶
- class InequalityFormulation¶
Bases:
EnumThe way that Amplify v0 wrote an inequality constraint. Deprecated.
Use
IntegerEncodingMethodandPenaltyFormulation. Amplify v1 chooses the encoding of the slack variable by itself, so Unary, Binary, and Linear all give the same formulation as Default.Members
- classmethod __contains__(value)¶
Return True if value is in cls.
value is in cls if: 1) value is a member of cls, or 2) value is the value of one of the cls’s members. 3) value is a pseudo-member (flags)
- classmethod __getitem__(name)¶
Return the member matching name.
- classmethod __iter__()¶
Return members in definition order.
- classmethod __len__()¶
Return the number of members (no aliases)
- Binary = PenaltyFormulation.Default¶
- Default = PenaltyFormulation.Default¶
- Linear = PenaltyFormulation.Default¶
- Relaxation = PenaltyFormulation.Relaxation¶
- RelaxationLinear = PenaltyFormulation.LinearRelaxation¶
- RelaxationQuadra = PenaltyFormulation.QuadraticRelaxation¶
- Unary = PenaltyFormulation.Default¶