5.8. Constr

class Constr

This class represents a constraint.

It is usually generated by comparison between expressions.

Properties

index

This index of this constraint.

lhs

The left-hand-side value for this constraint.

rhs

The right-hand-side value for this constraint.

sense

The comparator for this constraint.

property index: int

This index of this constraint.

property lhs: TensorLike | ArrayLike

The left-hand-side value for this constraint.

property rhs: TensorLike | ArrayLike

The right-hand-side value for this constraint.

property sense: str

The comparator for this constraint.