Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
Google.OrTools.LinearSolver.Variable Class Reference

Patch the MPVariable class to support the natural language API. More...

Inheritance diagram for Google.OrTools.LinearSolver.Variable:

Public Member Functions

void Dispose ()
 
string Name ()
 
void SetInteger (bool integer)
 
double SolutionValue ()
 
double Lb ()
 
double Ub ()
 
void SetLb (double lb)
 
void SetUb (double ub)
 
void SetBounds (double lb, double ub)
 
double ReducedCost ()
 
Solver.BasisStatus BasisStatus ()
 

Static Public Member Functions

static LinearExpr operator+ (Variable a, double v)
 
static LinearExpr operator+ (double v, Variable a)
 
static LinearExpr operator+ (Variable a, LinearExpr b)
 
static LinearExpr operator+ (Variable a, Variable b)
 
static LinearExpr operator+ (LinearExpr a, Variable b)
 
static LinearExpr operator- (Variable a, double v)
 
static LinearExpr operator- (double v, Variable a)
 
static LinearExpr operator- (Variable a, LinearExpr b)
 
static LinearExpr operator- (LinearExpr a, Variable b)
 
static LinearExpr operator- (Variable a, Variable b)
 
static LinearExpr operator- (Variable a)
 
static LinearExpr operator* (Variable a, double v)
 
static LinearExpr operator/ (Variable a, double v)
 
static LinearExpr operator* (double v, Variable a)
 
static RangeConstraint operator== (Variable a, double v)
 
static RangeConstraint operator== (double v, Variable a)
 
static RangeConstraint operator!= (Variable a, double v)
 
static RangeConstraint operator!= (double v, Variable a)
 
static Equality operator== (Variable a, LinearExpr b)
 
static Equality operator== (LinearExpr a, Variable b)
 
static VarEquality operator== (Variable a, Variable b)
 
static Equality operator!= (Variable a, LinearExpr b)
 
static Equality operator!= (LinearExpr a, Variable b)
 
static VarEquality operator!= (Variable a, Variable b)
 
static RangeConstraint operator<= (Variable a, double v)
 
static RangeConstraint operator>= (Variable a, double v)
 
static RangeConstraint operator<= (double v, Variable a)
 
static RangeConstraint operator>= (double v, Variable a)
 
static RangeConstraint operator<= (Variable a, LinearExpr b)
 
static RangeConstraint operator>= (Variable a, LinearExpr b)
 
static RangeConstraint operator<= (Variable a, Variable b)
 
static RangeConstraint operator>= (Variable a, Variable b)
 
static RangeConstraint operator<= (LinearExpr a, Variable b)
 
static RangeConstraint operator>= (LinearExpr a, Variable b)
 

Protected Member Functions

virtual void Dispose (bool disposing)
 

Protected Attributes

bool swigCMemOwn
 

Detailed Description

Patch the MPVariable class to support the natural language API.

Definition at line 15 of file Variable.cs.

Member Function Documentation

◆ BasisStatus()

Solver.BasisStatus Google.OrTools.LinearSolver.Variable.BasisStatus ( )
inline

Definition at line 103 of file Variable.cs.

◆ Dispose() [1/2]

void Google.OrTools.LinearSolver.Variable.Dispose ( )
inline

Definition at line 45 of file Variable.cs.

◆ Dispose() [2/2]

virtual void Google.OrTools.LinearSolver.Variable.Dispose ( bool disposing)
inlineprotectedvirtual

Definition at line 50 of file Variable.cs.

◆ Lb()

double Google.OrTools.LinearSolver.Variable.Lb ( )
inline

Definition at line 76 of file Variable.cs.

◆ Name()

string Google.OrTools.LinearSolver.Variable.Name ( )
inline

Definition at line 62 of file Variable.cs.

◆ operator!=() [1/5]

static RangeConstraint Google.OrTools.LinearSolver.Variable.operator!= ( double v,
Variable a )
inlinestatic

Definition at line 107 of file VariableHelper.cs.

◆ operator!=() [2/5]

static Equality Google.OrTools.LinearSolver.Variable.operator!= ( LinearExpr a,
Variable b )
inlinestatic

Definition at line 132 of file VariableHelper.cs.

◆ operator!=() [3/5]

static RangeConstraint Google.OrTools.LinearSolver.Variable.operator!= ( Variable a,
double v )
inlinestatic

Definition at line 102 of file VariableHelper.cs.

◆ operator!=() [4/5]

static Equality Google.OrTools.LinearSolver.Variable.operator!= ( Variable a,
LinearExpr b )
inlinestatic

Definition at line 127 of file VariableHelper.cs.

◆ operator!=() [5/5]

static VarEquality Google.OrTools.LinearSolver.Variable.operator!= ( Variable a,
Variable b )
inlinestatic

Definition at line 137 of file VariableHelper.cs.

◆ operator*() [1/2]

static LinearExpr Google.OrTools.LinearSolver.Variable.operator* ( double v,
Variable a )
inlinestatic

Definition at line 87 of file VariableHelper.cs.

◆ operator*() [2/2]

static LinearExpr Google.OrTools.LinearSolver.Variable.operator* ( Variable a,
double v )
inlinestatic

Definition at line 77 of file VariableHelper.cs.

◆ operator+() [1/5]

static LinearExpr Google.OrTools.LinearSolver.Variable.operator+ ( double v,
Variable a )
inlinestatic

Definition at line 27 of file VariableHelper.cs.

◆ operator+() [2/5]

static LinearExpr Google.OrTools.LinearSolver.Variable.operator+ ( LinearExpr a,
Variable b )
inlinestatic

Definition at line 42 of file VariableHelper.cs.

◆ operator+() [3/5]

static LinearExpr Google.OrTools.LinearSolver.Variable.operator+ ( Variable a,
double v )
inlinestatic

Definition at line 22 of file VariableHelper.cs.

◆ operator+() [4/5]

static LinearExpr Google.OrTools.LinearSolver.Variable.operator+ ( Variable a,
LinearExpr b )
inlinestatic

Definition at line 32 of file VariableHelper.cs.

◆ operator+() [5/5]

static LinearExpr Google.OrTools.LinearSolver.Variable.operator+ ( Variable a,
Variable b )
inlinestatic

Definition at line 37 of file VariableHelper.cs.

◆ operator-() [1/6]

static LinearExpr Google.OrTools.LinearSolver.Variable.operator- ( double v,
Variable a )
inlinestatic

Definition at line 52 of file VariableHelper.cs.

◆ operator-() [2/6]

static LinearExpr Google.OrTools.LinearSolver.Variable.operator- ( LinearExpr a,
Variable b )
inlinestatic

Definition at line 62 of file VariableHelper.cs.

◆ operator-() [3/6]

static LinearExpr Google.OrTools.LinearSolver.Variable.operator- ( Variable a)
inlinestatic

Definition at line 72 of file VariableHelper.cs.

◆ operator-() [4/6]

static LinearExpr Google.OrTools.LinearSolver.Variable.operator- ( Variable a,
double v )
inlinestatic

Definition at line 47 of file VariableHelper.cs.

◆ operator-() [5/6]

static LinearExpr Google.OrTools.LinearSolver.Variable.operator- ( Variable a,
LinearExpr b )
inlinestatic

Definition at line 57 of file VariableHelper.cs.

◆ operator-() [6/6]

static LinearExpr Google.OrTools.LinearSolver.Variable.operator- ( Variable a,
Variable b )
inlinestatic

Definition at line 67 of file VariableHelper.cs.

◆ operator/()

static LinearExpr Google.OrTools.LinearSolver.Variable.operator/ ( Variable a,
double v )
inlinestatic

Definition at line 82 of file VariableHelper.cs.

◆ operator<=() [1/5]

static RangeConstraint Google.OrTools.LinearSolver.Variable.operator<= ( double v,
Variable a )
inlinestatic

Definition at line 152 of file VariableHelper.cs.

◆ operator<=() [2/5]

static RangeConstraint Google.OrTools.LinearSolver.Variable.operator<= ( LinearExpr a,
Variable b )
inlinestatic

Definition at line 182 of file VariableHelper.cs.

◆ operator<=() [3/5]

static RangeConstraint Google.OrTools.LinearSolver.Variable.operator<= ( Variable a,
double v )
inlinestatic

Definition at line 142 of file VariableHelper.cs.

◆ operator<=() [4/5]

static RangeConstraint Google.OrTools.LinearSolver.Variable.operator<= ( Variable a,
LinearExpr b )
inlinestatic

Definition at line 162 of file VariableHelper.cs.

◆ operator<=() [5/5]

static RangeConstraint Google.OrTools.LinearSolver.Variable.operator<= ( Variable a,
Variable b )
inlinestatic

Definition at line 172 of file VariableHelper.cs.

◆ operator==() [1/5]

static RangeConstraint Google.OrTools.LinearSolver.Variable.operator== ( double v,
Variable a )
inlinestatic

Definition at line 97 of file VariableHelper.cs.

◆ operator==() [2/5]

static Equality Google.OrTools.LinearSolver.Variable.operator== ( LinearExpr a,
Variable b )
inlinestatic

Definition at line 117 of file VariableHelper.cs.

◆ operator==() [3/5]

static RangeConstraint Google.OrTools.LinearSolver.Variable.operator== ( Variable a,
double v )
inlinestatic

Definition at line 92 of file VariableHelper.cs.

◆ operator==() [4/5]

static Equality Google.OrTools.LinearSolver.Variable.operator== ( Variable a,
LinearExpr b )
inlinestatic

Definition at line 112 of file VariableHelper.cs.

◆ operator==() [5/5]

static VarEquality Google.OrTools.LinearSolver.Variable.operator== ( Variable a,
Variable b )
inlinestatic

Definition at line 122 of file VariableHelper.cs.

◆ operator>=() [1/5]

static RangeConstraint Google.OrTools.LinearSolver.Variable.operator>= ( double v,
Variable a )
inlinestatic

Definition at line 157 of file VariableHelper.cs.

◆ operator>=() [2/5]

static RangeConstraint Google.OrTools.LinearSolver.Variable.operator>= ( LinearExpr a,
Variable b )
inlinestatic

Definition at line 187 of file VariableHelper.cs.

◆ operator>=() [3/5]

static RangeConstraint Google.OrTools.LinearSolver.Variable.operator>= ( Variable a,
double v )
inlinestatic

Definition at line 147 of file VariableHelper.cs.

◆ operator>=() [4/5]

static RangeConstraint Google.OrTools.LinearSolver.Variable.operator>= ( Variable a,
LinearExpr b )
inlinestatic

Definition at line 167 of file VariableHelper.cs.

◆ operator>=() [5/5]

static RangeConstraint Google.OrTools.LinearSolver.Variable.operator>= ( Variable a,
Variable b )
inlinestatic

Definition at line 177 of file VariableHelper.cs.

◆ ReducedCost()

double Google.OrTools.LinearSolver.Variable.ReducedCost ( )
inline

Definition at line 98 of file Variable.cs.

◆ SetBounds()

void Google.OrTools.LinearSolver.Variable.SetBounds ( double lb,
double ub )
inline

Definition at line 94 of file Variable.cs.

◆ SetInteger()

void Google.OrTools.LinearSolver.Variable.SetInteger ( bool integer)
inline

Definition at line 67 of file Variable.cs.

◆ SetLb()

void Google.OrTools.LinearSolver.Variable.SetLb ( double lb)
inline

Definition at line 86 of file Variable.cs.

◆ SetUb()

void Google.OrTools.LinearSolver.Variable.SetUb ( double ub)
inline

Definition at line 90 of file Variable.cs.

◆ SolutionValue()

double Google.OrTools.LinearSolver.Variable.SolutionValue ( )
inline

Definition at line 71 of file Variable.cs.

◆ Ub()

double Google.OrTools.LinearSolver.Variable.Ub ( )
inline

Definition at line 81 of file Variable.cs.

Member Data Documentation

◆ swigCMemOwn

bool Google.OrTools.LinearSolver.Variable.swigCMemOwn
protected

Definition at line 17 of file Variable.cs.


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