Google OR-Tools v9.14
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
ortools.math_opt.python.bounded_expressions Namespace Reference

Detailed Description

Bounded (above and below), upper bounded, and lower bounded expressions.

Classes

class  BoundedExpression
class  LowerBoundedExpression
class  UpperBoundedExpression

Functions

NoReturn _raise_binary_operator_type_error (str operator, Type[Any] lhs, Type[Any] rhs, Optional[str] extra_message=None)

Variables

tuple _CHAINED_COMPARISON_MESSAGE
 T = TypeVar("T")

Function Documentation

◆ _raise_binary_operator_type_error()

NoReturn ortools.math_opt.python.bounded_expressions._raise_binary_operator_type_error ( str operator,
Type[Any] lhs,
Type[Any] rhs,
Optional[str] extra_message = None )
protected
Raises TypeError on unsupported operators.

Definition at line 26 of file bounded_expressions.py.

Variable Documentation

◆ _CHAINED_COMPARISON_MESSAGE

tuple ortools.math_opt.python.bounded_expressions._CHAINED_COMPARISON_MESSAGE
protected
Initial value:
1= (
2 "If you were trying to create a two-sided or "
3 "ranged linear inequality of the form `lb <= "
4 "expr <= ub`, try `(lb <= expr) <= ub` instead"
5)

Definition at line 19 of file bounded_expressions.py.

◆ T

ortools.math_opt.python.bounded_expressions.T = TypeVar("T")

Definition at line 42 of file bounded_expressions.py.