Kind

Kind#

class Kind#

Numeric scalar decision-variable domain kind.

New kinds may be added. This value type does not promise an exhaustive list. Inspect known constants and reject unsupported kinds in consumers that interpret domain semantics. Generic metadata queries retain Kind.

__eq__(other: object) → bool#
__hash__() → int#
__int__() → int#
__ne__(other: object) → bool#
__new__(_unconstructible: NoReturn, /) → Kind#
__repr__() → str#
__str__() → str#
from_pb(value: int) → Kind#

Convert a known protobuf kind. Unknown semantic kinds are rejected.

to_pb() → int#

Convert to the protobuf kind number.

Binary: Kind#
Continuous: Kind#
FiniteDomain: Kind#
Integer: Kind#
SemiContinuous: Kind#
SemiInteger: Kind#