Google OR-Tools v9.9
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
Google.OrTools.LinearSolver.ProductCst Class Reference
Inheritance diagram for Google.OrTools.LinearSolver.ProductCst:
Google.OrTools.LinearSolver.LinearExpr

Public Member Functions

 ProductCst (LinearExpr expr, double coeff)
 
override String ToString ()
 
override double DoVisit (Dictionary< Variable, double > coefficients, double multiplier)
 
override double SolutionValue ()
 
- Public Member Functions inherited from Google.OrTools.LinearSolver.LinearExpr
double Visit (Dictionary< Variable, double > coefficients)
 

Additional Inherited Members

- Static Public Member Functions inherited from Google.OrTools.LinearSolver.LinearExpr
static LinearExpr operator+ (LinearExpr a, double v)
 
static LinearExpr operator+ (double v, LinearExpr a)
 
static LinearExpr operator+ (LinearExpr a, LinearExpr b)
 
static LinearExpr operator- (LinearExpr a, double v)
 
static LinearExpr operator- (double v, LinearExpr a)
 
static LinearExpr operator- (LinearExpr a, LinearExpr b)
 
static LinearExpr operator- (LinearExpr a)
 
static LinearExpr operator* (LinearExpr a, double v)
 
static LinearExpr operator/ (LinearExpr a, double v)
 
static LinearExpr operator* (double v, LinearExpr a)
 
static RangeConstraint operator== (LinearExpr a, double v)
 
static RangeConstraint operator== (double v, LinearExpr a)
 
static RangeConstraint operator!= (LinearExpr a, double v)
 
static RangeConstraint operator!= (double v, LinearExpr a)
 
static Equality operator== (LinearExpr a, LinearExpr b)
 
static Equality operator!= (LinearExpr a, LinearExpr b)
 
static RangeConstraint operator<= (LinearExpr a, double v)
 
static RangeConstraint operator>= (LinearExpr a, double v)
 
static RangeConstraint operator<= (LinearExpr a, LinearExpr b)
 
static RangeConstraint operator>= (LinearExpr a, LinearExpr b)
 
static implicit operator LinearExpr (Variable a)
 

Detailed Description

def ge(self, arg): if isinstance(arg, (int, long, float)): return LinearConstraint(self, arg, 1e308) else: return LinearConstraint(Sum(self, ProductCst(arg, -1)), 0.0, 1e308) def le(self, arg): if isinstance(arg, (int, long, float)): return LinearConstraint(self, -1e308, arg) else: return LinearConstraint(Sum(self, ProductCst(arg, -1)), -1e308, 0.0)

Definition at line 167 of file LinearExpr.cs.

Constructor & Destructor Documentation

◆ ProductCst()

Google.OrTools.LinearSolver.ProductCst.ProductCst ( LinearExpr expr,
double coeff )
inline

Definition at line 169 of file LinearExpr.cs.

Member Function Documentation

◆ DoVisit()

override double Google.OrTools.LinearSolver.ProductCst.DoVisit ( Dictionary< Variable, double > coefficients,
double multiplier )
inlinevirtual

Reimplemented from Google.OrTools.LinearSolver.LinearExpr.

Definition at line 180 of file LinearExpr.cs.

◆ SolutionValue()

override double Google.OrTools.LinearSolver.ProductCst.SolutionValue ( )
inlinevirtual

Reimplemented from Google.OrTools.LinearSolver.LinearExpr.

Definition at line 193 of file LinearExpr.cs.

◆ ToString()

override String Google.OrTools.LinearSolver.ProductCst.ToString ( )
inline

Definition at line 175 of file LinearExpr.cs.


The documentation for this class was generated from the following file: