Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
model_builder.py File Reference

Go to the source code of this file.

Classes

class  ortools.linear_solver.python.model_builder.LinearExpr
 
class  ortools.linear_solver.python.model_builder.Variable
 
class  ortools.linear_solver.python.model_builder._BoundedLinearExpr
 
class  ortools.linear_solver.python.model_builder.VarEqVar
 
class  ortools.linear_solver.python.model_builder.BoundedLinearExpression
 
class  ortools.linear_solver.python.model_builder.LinearConstraint
 
class  ortools.linear_solver.python.model_builder.EnforcedLinearConstraint
 
class  ortools.linear_solver.python.model_builder.Model
 
class  ortools.linear_solver.python.model_builder.Solver
 
class  ortools.linear_solver.python.model_builder._LinearExpression
 
class  ortools.linear_solver.python.model_builder._Sum
 
class  ortools.linear_solver.python.model_builder._Product
 

Namespaces

namespace  ortools
 
namespace  ortools.linear_solver
 
namespace  ortools.linear_solver.python
 
namespace  ortools.linear_solver.python.model_builder
 

Functions

 ortools.linear_solver.python.model_builder._add_linear_constraint_to_helper (Union[bool, _BoundedLinearExpr] bounded_expr, mbh.ModelBuilderHelper helper, Optional[str] name)
 
 ortools.linear_solver.python.model_builder._add_enforced_linear_constraint_to_helper (Union[bool, _BoundedLinearExpr] bounded_expr, mbh.ModelBuilderHelper helper, Variable var, bool value, Optional[str] name)
 
_LinearExpression ortools.linear_solver.python.model_builder._sum_as_flat_linear_expression (List[Tuple[LinearExprT, float]] to_process, float offset=0.0)
 
_LinearExpression ortools.linear_solver.python.model_builder._as_flat_linear_expression (LinearExprT base_expr)
 
pd.Index ortools.linear_solver.python.model_builder._get_index (_IndexOrSeries obj)
 
pd.Series ortools.linear_solver.python.model_builder._attribute_series (*, Callable[[_VariableOrConstraint], NumberT] func, _IndexOrSeries values)
 
pd.Series ortools.linear_solver.python.model_builder._convert_to_series_and_validate_index (Union[bool, NumberT, pd.Series] value_or_series, pd.Index index)
 
pd.Series ortools.linear_solver.python.model_builder._convert_to_var_series_and_validate_index (Union["Variable", pd.Series] var_or_series, pd.Index index)
 

Variables

 ortools.linear_solver.python.model_builder.NumberT = Union[int, float, numbers.Real, np.number]
 
 ortools.linear_solver.python.model_builder.IntegerT = Union[int, numbers.Integral, np.integer]
 
 ortools.linear_solver.python.model_builder.LinearExprT = Union["LinearExpr", NumberT]
 
 ortools.linear_solver.python.model_builder.ConstraintT = Union["_BoundedLinearExpr", bool]
 
 ortools.linear_solver.python.model_builder._IndexOrSeries = Union[pd.Index, pd.Series]
 
 ortools.linear_solver.python.model_builder._VariableOrConstraint = Union["LinearConstraint", "Variable"]
 
 ortools.linear_solver.python.model_builder.SolveStatus = mbh.SolveStatus
 
int ortools.linear_solver.python.model_builder._MAX_LINEAR_EXPRESSION_REPR_TERMS = 5
 
 ortools.linear_solver.python.model_builder.ModelBuilder = Model
 
 ortools.linear_solver.python.model_builder.ModelSolver = Solver