Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
Google.OrTools.ConstraintSolver.IntExpr Class Reference
Inheritance diagram for Google.OrTools.ConstraintSolver.IntExpr:
Google.OrTools.ConstraintSolver.PropagationBaseObject Google.OrTools.ConstraintSolver.PropagationBaseObject Google.OrTools.ConstraintSolver.BaseObject Google.OrTools.ConstraintSolver.BaseObject Google.OrTools.ConstraintSolver.BaseIntExpr Google.OrTools.ConstraintSolver.IntVar Google.OrTools.ConstraintSolver.BooleanVar

Public Member Functions

IntExpr Abs ()
 
IntExpr Square ()
 
virtual long Min ()
 
virtual void SetMin (long m)
 
virtual long Max ()
 
virtual void SetMax (long m)
 
virtual void Range (out int l, out int u)
 
virtual void SetRange (long l, long u)
 
virtual void SetValue (long v)
 
virtual bool Bound ()
 
virtual bool IsVar ()
 
virtual IntVar Var ()
 
IntVar VarWithName (string name)
 
virtual void WhenRange (Demon d)
 
void WhenRange (VoidToVoid closure)
 
virtual void Accept (ModelVisitor visitor)
 
Constraint MapTo (IntVarVector vars)
 
IntExpr IndexOf (long[] vars)
 
IntExpr IndexOf (IntVarVector vars)
 
IntVar IsEqual (long value)
 
IntVar IsDifferent (long value)
 
IntVar IsGreater (long value)
 
IntVar IsGreaterOrEqual (long value)
 
IntVar IsLess (long value)
 
IntVar IsLessOrEqual (long value)
 
IntVar IsMember (long[] values)
 
IntVar IsMember (int[] values)
 
Constraint Member (long[] values)
 
Constraint Member (int[] values)
 
IntVar IsEqual (IntExpr other)
 
IntVar IsDifferent (IntExpr other)
 
IntVar IsGreater (IntExpr other)
 
IntVar IsGreaterOrEqual (IntExpr other)
 
IntVar IsLess (IntExpr other)
 
IntVar IsLessOrEqual (IntExpr other)
 
OptimizeVar Minimize (long step)
 
OptimizeVar Maximize (long step)
 
- Public Member Functions inherited from Google.OrTools.ConstraintSolver.PropagationBaseObject
 PropagationBaseObject (Solver s)
 
override string ToString ()
 
Solver solver ()
 
void FreezeQueue ()
 
void UnfreezeQueue ()
 
void EnqueueDelayedDemon (Demon d)
 
void EnqueueVar (Demon d)
 
void ResetActionOnFail ()
 
void SetVariableToCleanOnFail (IntVar v)
 
virtual string Name ()
 
void SetName (string name)
 
bool HasName ()
 
virtual string BaseName ()
 
- Public Member Functions inherited from Google.OrTools.ConstraintSolver.BaseObject
void Dispose ()
 
 BaseObject ()
 

Static Public Member Functions

static IntExpr operator+ (IntExpr a, IntExpr b)
 
static IntExpr operator+ (IntExpr a, long v)
 
static IntExpr operator+ (long v, IntExpr a)
 
static IntExpr operator- (IntExpr a, IntExpr b)
 
static IntExpr operator- (IntExpr a, long v)
 
static IntExpr operator- (long v, IntExpr a)
 
static IntExpr operator* (IntExpr a, IntExpr b)
 
static IntExpr operator* (IntExpr a, long v)
 
static IntExpr operator* (long v, IntExpr a)
 
static IntExpr operator/ (IntExpr a, long v)
 
static IntExpr operator% (IntExpr a, long v)
 
static IntExpr operator- (IntExpr a)
 
static IntExprEquality operator== (IntExpr a, IntExpr b)
 
static IntExprEquality operator!= (IntExpr a, IntExpr b)
 
static WrappedConstraint operator== (IntExpr a, long v)
 
static WrappedConstraint operator!= (IntExpr a, long v)
 
static WrappedConstraint operator>= (IntExpr a, long v)
 
static WrappedConstraint operator> (IntExpr a, long v)
 
static WrappedConstraint operator<= (IntExpr a, long v)
 
static WrappedConstraint operator< (IntExpr a, long v)
 
static WrappedConstraint operator>= (IntExpr a, IntExpr b)
 
static WrappedConstraint operator> (IntExpr a, IntExpr b)
 
static WrappedConstraint operator<= (IntExpr a, IntExpr b)
 
static WrappedConstraint operator< (IntExpr a, IntExpr b)
 

Protected Member Functions

override void Dispose (bool disposing)
 
- Protected Member Functions inherited from Google.OrTools.ConstraintSolver.PropagationBaseObject
override void Dispose (bool disposing)
 
- Protected Member Functions inherited from Google.OrTools.ConstraintSolver.BaseObject

Additional Inherited Members

- Protected Attributes inherited from Google.OrTools.ConstraintSolver.BaseObject
bool swigCMemOwn
 
- Package Functions inherited from Google.OrTools.ConstraintSolver.PropagationBaseObject
- Package Functions inherited from Google.OrTools.ConstraintSolver.BaseObject
- Static Package Functions inherited from Google.OrTools.ConstraintSolver.PropagationBaseObject
- Static Package Functions inherited from Google.OrTools.ConstraintSolver.BaseObject

Detailed Description

Definition at line 20 of file IntExpr.cs.

Member Function Documentation

◆ Abs()

IntExpr Google.OrTools.ConstraintSolver.IntExpr.Abs ( )
inline

Definition at line 392 of file SolverHelper.cs.

◆ Accept()

virtual void Google.OrTools.ConstraintSolver.IntExpr.Accept ( ModelVisitor visitor)
inlinevirtual

Reimplemented in Google.OrTools.ConstraintSolver.IntVar.

Definition at line 131 of file IntExpr.cs.

◆ Bound()

virtual bool Google.OrTools.ConstraintSolver.IntExpr.Bound ( )
inlinevirtual

Reimplemented in Google.OrTools.ConstraintSolver.BooleanVar.

Definition at line 100 of file IntExpr.cs.

◆ Dispose()

override void Google.OrTools.ConstraintSolver.IntExpr.Dispose ( bool disposing)
inlineprotectedvirtual

Reimplemented from Google.OrTools.ConstraintSolver.BaseObject.

Reimplemented in Google.OrTools.ConstraintSolver.IntVar.

Definition at line 44 of file IntExpr.cs.

◆ IndexOf() [1/2]

IntExpr Google.OrTools.ConstraintSolver.IntExpr.IndexOf ( IntVarVector vars)
inline

Definition at line 148 of file IntExpr.cs.

◆ IndexOf() [2/2]

IntExpr Google.OrTools.ConstraintSolver.IntExpr.IndexOf ( long[] vars)
inline

Definition at line 142 of file IntExpr.cs.

◆ IsDifferent() [1/2]

IntVar Google.OrTools.ConstraintSolver.IntExpr.IsDifferent ( IntExpr other)
inline

Definition at line 221 of file IntExpr.cs.

◆ IsDifferent() [2/2]

IntVar Google.OrTools.ConstraintSolver.IntExpr.IsDifferent ( long value)
inline

Definition at line 161 of file IntExpr.cs.

◆ IsEqual() [1/2]

IntVar Google.OrTools.ConstraintSolver.IntExpr.IsEqual ( IntExpr other)
inline

Definition at line 215 of file IntExpr.cs.

◆ IsEqual() [2/2]

IntVar Google.OrTools.ConstraintSolver.IntExpr.IsEqual ( long value)
inline

Definition at line 155 of file IntExpr.cs.

◆ IsGreater() [1/2]

IntVar Google.OrTools.ConstraintSolver.IntExpr.IsGreater ( IntExpr other)
inline

Definition at line 227 of file IntExpr.cs.

◆ IsGreater() [2/2]

IntVar Google.OrTools.ConstraintSolver.IntExpr.IsGreater ( long value)
inline

Definition at line 167 of file IntExpr.cs.

◆ IsGreaterOrEqual() [1/2]

IntVar Google.OrTools.ConstraintSolver.IntExpr.IsGreaterOrEqual ( IntExpr other)
inline

Definition at line 233 of file IntExpr.cs.

◆ IsGreaterOrEqual() [2/2]

IntVar Google.OrTools.ConstraintSolver.IntExpr.IsGreaterOrEqual ( long value)
inline

Definition at line 173 of file IntExpr.cs.

◆ IsLess() [1/2]

IntVar Google.OrTools.ConstraintSolver.IntExpr.IsLess ( IntExpr other)
inline

Definition at line 239 of file IntExpr.cs.

◆ IsLess() [2/2]

IntVar Google.OrTools.ConstraintSolver.IntExpr.IsLess ( long value)
inline

Definition at line 179 of file IntExpr.cs.

◆ IsLessOrEqual() [1/2]

IntVar Google.OrTools.ConstraintSolver.IntExpr.IsLessOrEqual ( IntExpr other)
inline

Definition at line 245 of file IntExpr.cs.

◆ IsLessOrEqual() [2/2]

IntVar Google.OrTools.ConstraintSolver.IntExpr.IsLessOrEqual ( long value)
inline

Definition at line 185 of file IntExpr.cs.

◆ IsMember() [1/2]

IntVar Google.OrTools.ConstraintSolver.IntExpr.IsMember ( int[] values)
inline

Definition at line 197 of file IntExpr.cs.

◆ IsMember() [2/2]

IntVar Google.OrTools.ConstraintSolver.IntExpr.IsMember ( long[] values)
inline

Definition at line 191 of file IntExpr.cs.

◆ IsVar()

virtual bool Google.OrTools.ConstraintSolver.IntExpr.IsVar ( )
inlinevirtual

Reimplemented in Google.OrTools.ConstraintSolver.IntVar.

Definition at line 105 of file IntExpr.cs.

◆ MapTo()

Constraint Google.OrTools.ConstraintSolver.IntExpr.MapTo ( IntVarVector vars)
inline

Definition at line 135 of file IntExpr.cs.

◆ Max()

virtual long Google.OrTools.ConstraintSolver.IntExpr.Max ( )
inlinevirtual

Reimplemented in Google.OrTools.ConstraintSolver.BooleanVar.

Definition at line 76 of file IntExpr.cs.

◆ Maximize()

OptimizeVar Google.OrTools.ConstraintSolver.IntExpr.Maximize ( long step)
inline

Definition at line 257 of file IntExpr.cs.

◆ Member() [1/2]

Constraint Google.OrTools.ConstraintSolver.IntExpr.Member ( int[] values)
inline

Definition at line 209 of file IntExpr.cs.

◆ Member() [2/2]

Constraint Google.OrTools.ConstraintSolver.IntExpr.Member ( long[] values)
inline

Definition at line 203 of file IntExpr.cs.

◆ Min()

virtual long Google.OrTools.ConstraintSolver.IntExpr.Min ( )
inlinevirtual

Reimplemented in Google.OrTools.ConstraintSolver.BooleanVar.

Definition at line 66 of file IntExpr.cs.

◆ Minimize()

OptimizeVar Google.OrTools.ConstraintSolver.IntExpr.Minimize ( long step)
inline

Definition at line 251 of file IntExpr.cs.

◆ operator!=() [1/2]

static IntExprEquality Google.OrTools.ConstraintSolver.IntExpr.operator!= ( IntExpr a,
IntExpr b )
inlinestatic

Definition at line 404 of file SolverHelper.cs.

◆ operator!=() [2/2]

static WrappedConstraint Google.OrTools.ConstraintSolver.IntExpr.operator!= ( IntExpr a,
long v )
inlinestatic

Definition at line 412 of file SolverHelper.cs.

◆ operator%()

static IntExpr Google.OrTools.ConstraintSolver.IntExpr.operator% ( IntExpr a,
long v )
inlinestatic

Definition at line 384 of file SolverHelper.cs.

◆ operator*() [1/3]

static IntExpr Google.OrTools.ConstraintSolver.IntExpr.operator* ( IntExpr a,
IntExpr b )
inlinestatic

Definition at line 368 of file SolverHelper.cs.

◆ operator*() [2/3]

static IntExpr Google.OrTools.ConstraintSolver.IntExpr.operator* ( IntExpr a,
long v )
inlinestatic

Definition at line 372 of file SolverHelper.cs.

◆ operator*() [3/3]

static IntExpr Google.OrTools.ConstraintSolver.IntExpr.operator* ( long v,
IntExpr a )
inlinestatic

Definition at line 376 of file SolverHelper.cs.

◆ operator+() [1/3]

static IntExpr Google.OrTools.ConstraintSolver.IntExpr.operator+ ( IntExpr a,
IntExpr b )
inlinestatic

Definition at line 344 of file SolverHelper.cs.

◆ operator+() [2/3]

static IntExpr Google.OrTools.ConstraintSolver.IntExpr.operator+ ( IntExpr a,
long v )
inlinestatic

Definition at line 348 of file SolverHelper.cs.

◆ operator+() [3/3]

static IntExpr Google.OrTools.ConstraintSolver.IntExpr.operator+ ( long v,
IntExpr a )
inlinestatic

Definition at line 352 of file SolverHelper.cs.

◆ operator-() [1/4]

static IntExpr Google.OrTools.ConstraintSolver.IntExpr.operator- ( IntExpr a)
inlinestatic

Definition at line 388 of file SolverHelper.cs.

◆ operator-() [2/4]

static IntExpr Google.OrTools.ConstraintSolver.IntExpr.operator- ( IntExpr a,
IntExpr b )
inlinestatic

Definition at line 356 of file SolverHelper.cs.

◆ operator-() [3/4]

static IntExpr Google.OrTools.ConstraintSolver.IntExpr.operator- ( IntExpr a,
long v )
inlinestatic

Definition at line 360 of file SolverHelper.cs.

◆ operator-() [4/4]

static IntExpr Google.OrTools.ConstraintSolver.IntExpr.operator- ( long v,
IntExpr a )
inlinestatic

Definition at line 364 of file SolverHelper.cs.

◆ operator/()

static IntExpr Google.OrTools.ConstraintSolver.IntExpr.operator/ ( IntExpr a,
long v )
inlinestatic

Definition at line 380 of file SolverHelper.cs.

◆ operator<() [1/2]

static WrappedConstraint Google.OrTools.ConstraintSolver.IntExpr.operator< ( IntExpr a,
IntExpr b )
inlinestatic

Definition at line 444 of file SolverHelper.cs.

◆ operator<() [2/2]

static WrappedConstraint Google.OrTools.ConstraintSolver.IntExpr.operator< ( IntExpr a,
long v )
inlinestatic

Definition at line 428 of file SolverHelper.cs.

◆ operator<=() [1/2]

static WrappedConstraint Google.OrTools.ConstraintSolver.IntExpr.operator<= ( IntExpr a,
IntExpr b )
inlinestatic

Definition at line 440 of file SolverHelper.cs.

◆ operator<=() [2/2]

static WrappedConstraint Google.OrTools.ConstraintSolver.IntExpr.operator<= ( IntExpr a,
long v )
inlinestatic

Definition at line 424 of file SolverHelper.cs.

◆ operator==() [1/2]

static IntExprEquality Google.OrTools.ConstraintSolver.IntExpr.operator== ( IntExpr a,
IntExpr b )
inlinestatic

Definition at line 400 of file SolverHelper.cs.

◆ operator==() [2/2]

static WrappedConstraint Google.OrTools.ConstraintSolver.IntExpr.operator== ( IntExpr a,
long v )
inlinestatic

Definition at line 408 of file SolverHelper.cs.

◆ operator>() [1/2]

static WrappedConstraint Google.OrTools.ConstraintSolver.IntExpr.operator> ( IntExpr a,
IntExpr b )
inlinestatic

Definition at line 436 of file SolverHelper.cs.

◆ operator>() [2/2]

static WrappedConstraint Google.OrTools.ConstraintSolver.IntExpr.operator> ( IntExpr a,
long v )
inlinestatic

Definition at line 420 of file SolverHelper.cs.

◆ operator>=() [1/2]

static WrappedConstraint Google.OrTools.ConstraintSolver.IntExpr.operator>= ( IntExpr a,
IntExpr b )
inlinestatic

Definition at line 432 of file SolverHelper.cs.

◆ operator>=() [2/2]

static WrappedConstraint Google.OrTools.ConstraintSolver.IntExpr.operator>= ( IntExpr a,
long v )
inlinestatic

Definition at line 416 of file SolverHelper.cs.

◆ Range()

virtual void Google.OrTools.ConstraintSolver.IntExpr.Range ( out int l,
out int u )
inlinevirtual

Definition at line 86 of file IntExpr.cs.

◆ SetMax()

virtual void Google.OrTools.ConstraintSolver.IntExpr.SetMax ( long m)
inlinevirtual

Reimplemented in Google.OrTools.ConstraintSolver.BooleanVar.

Definition at line 81 of file IntExpr.cs.

◆ SetMin()

virtual void Google.OrTools.ConstraintSolver.IntExpr.SetMin ( long m)
inlinevirtual

Reimplemented in Google.OrTools.ConstraintSolver.BooleanVar.

Definition at line 71 of file IntExpr.cs.

◆ SetRange()

virtual void Google.OrTools.ConstraintSolver.IntExpr.SetRange ( long l,
long u )
inlinevirtual

Reimplemented in Google.OrTools.ConstraintSolver.BooleanVar.

Definition at line 90 of file IntExpr.cs.

◆ SetValue()

virtual void Google.OrTools.ConstraintSolver.IntExpr.SetValue ( long v)
inlinevirtual

Definition at line 95 of file IntExpr.cs.

◆ Square()

IntExpr Google.OrTools.ConstraintSolver.IntExpr.Square ( )
inline

Definition at line 396 of file SolverHelper.cs.

◆ Var()

virtual IntVar Google.OrTools.ConstraintSolver.IntExpr.Var ( )
inlinevirtual

◆ VarWithName()

IntVar Google.OrTools.ConstraintSolver.IntExpr.VarWithName ( string name)
inline

Definition at line 116 of file IntExpr.cs.

◆ WhenRange() [1/2]

virtual void Google.OrTools.ConstraintSolver.IntExpr.WhenRange ( Demon d)
inlinevirtual

Reimplemented in Google.OrTools.ConstraintSolver.BooleanVar.

Definition at line 123 of file IntExpr.cs.

◆ WhenRange() [2/2]

void Google.OrTools.ConstraintSolver.IntExpr.WhenRange ( VoidToVoid closure)
inline

Definition at line 127 of file IntExpr.cs.


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