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

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.swig. See that
file.
For examples leveraging the code defined here, see ./pywraplp_test.py and
../../../python/linear_programming.py.

Classes

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

Functions

 CastToLinExp (v)
 Sum (*args)

Variables

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

Function Documentation

◆ CastToLinExp()

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

Definition at line 53 of file linear_solver_natural_api.py.

◆ Sum()

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

Definition at line 250 of file linear_solver_natural_api.py.

Variable Documentation

◆ inf

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

Definition at line 31 of file linear_solver_natural_api.py.

◆ OFFSET_KEY

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

Definition at line 50 of file linear_solver_natural_api.py.

◆ SumCst

ortools.linear_solver.python.linear_solver_natural_api.SumCst = Sum

Definition at line 254 of file linear_solver_natural_api.py.