Google OR-Tools v9.12
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.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
 

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, mbh.BoundedLinearExpression] bounded_expr, mbh.ModelBuilderHelper helper, Optional[str] name)
 
 ortools.linear_solver.python.model_builder._add_enforced_linear_constraint_to_helper (Union[bool, mbh.BoundedLinearExpression] bounded_expr, mbh.ModelBuilderHelper helper, Variable var, bool value, Optional[str] name)
 
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[mbh.LinearExpr, NumberT]
 
 ortools.linear_solver.python.model_builder.ConstraintT = Union[mbh.BoundedLinearExpression, bool]
 
 ortools.linear_solver.python.model_builder._IndexOrSeries = Union[pd.Index, pd.Series]
 
 ortools.linear_solver.python.model_builder._VariableOrConstraint = Union["LinearConstraint", mbh.Variable]
 
 ortools.linear_solver.python.model_builder.AffineExpr = mbh.AffineExpr
 
 ortools.linear_solver.python.model_builder.BoundedLinearExpression = mbh.BoundedLinearExpression
 
 ortools.linear_solver.python.model_builder.FlatExpr = mbh.FlatExpr
 
 ortools.linear_solver.python.model_builder.LinearExpr = mbh.LinearExpr
 
 ortools.linear_solver.python.model_builder.SolveStatus = mbh.SolveStatus
 
 ortools.linear_solver.python.model_builder.Variable = mbh.Variable
 
 ortools.linear_solver.python.model_builder.ModelBuilder = Model
 
 ortools.linear_solver.python.model_builder.ModelSolver = Solver