Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
ortools.linear_solver.python.linear_solver_natural_api Namespace Reference

Classes

class  _FakeMPVariableRepresentingTheConstantOffset
 
class  Constant
 
class  LinearConstraint
 
class  LinearExpr
 
class  ProductCst
 
class  SumArray
 
class  VariableExpr
 

Functions

 CastToLinExp (v)
 
 Sum (*args)
 

Variables

 inf = float("inf")
 
 OFFSET_KEY = _FakeMPVariableRepresentingTheConstantOffset()
 
 SumCst = Sum
 

Detailed Description

Patch to the python wrapper of ../linear_solver.h providing an algebraic API.

This is directly imported, and use exclusively in ./linear_solver.i. See that
file.
For examples leveraging the code defined here, see ./pywraplp_test.py and
../../../python/linear_programming.py.

Function Documentation

◆ CastToLinExp()

ortools.linear_solver.python.linear_solver_natural_api.CastToLinExp ( v)

Definition at line 52 of file linear_solver_natural_api.py.

◆ Sum()

ortools.linear_solver.python.linear_solver_natural_api.Sum ( * args)

Definition at line 249 of file linear_solver_natural_api.py.

Variable Documentation

◆ inf

ortools.linear_solver.python.linear_solver_natural_api.inf = float("inf")

Definition at line 30 of file linear_solver_natural_api.py.

◆ OFFSET_KEY

ortools.linear_solver.python.linear_solver_natural_api.OFFSET_KEY = _FakeMPVariableRepresentingTheConstantOffset()

Definition at line 49 of file linear_solver_natural_api.py.

◆ SumCst

ortools.linear_solver.python.linear_solver_natural_api.SumCst = Sum

Definition at line 253 of file linear_solver_natural_api.py.