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

Public Member Functions

override bool IsVar ()
 
override IntVar Var ()
 
virtual long Value ()
 
virtual void RemoveValue (long v)
 
virtual void RemoveInterval (long l, long u)
 
virtual void RemoveValues (long[] values)
 
virtual void SetValues (long[] values)
 
virtual void WhenBound (Demon d)
 
void WhenBound (VoidToVoid closure)
 
virtual void WhenDomain (Demon d)
 
void WhenDomain (VoidToVoid closure)
 
virtual ulong Size ()
 
virtual bool Contains (long v)
 
virtual long OldMin ()
 
virtual long OldMax ()
 
virtual int VarType ()
 
override void Accept (ModelVisitor visitor)
 
virtual new IntVar IsEqual (long constant)
 
virtual new IntVar IsDifferent (long constant)
 
virtual new IntVar IsGreaterOrEqual (long constant)
 
virtual new IntVar IsLessOrEqual (long constant)
 
int Index ()
 
IntVarIterator GetDomain ()
 
IntVarIterator GetHoles ()
 
- Public Member Functions inherited from Google.OrTools.ConstraintSolver.IntExpr
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 ()
 
IntVar VarWithName (string name)
 
virtual void WhenRange (Demon d)
 
void WhenRange (VoidToVoid closure)
 
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 ()
 

Protected Member Functions

override void Dispose (bool disposing)
 
- Protected Member Functions inherited from Google.OrTools.ConstraintSolver.IntExpr
- 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

- Static Public Member Functions inherited from Google.OrTools.ConstraintSolver.IntExpr
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 Attributes inherited from Google.OrTools.ConstraintSolver.BaseObject
bool swigCMemOwn
 
- Package Functions inherited from Google.OrTools.ConstraintSolver.IntExpr
- Package Functions inherited from Google.OrTools.ConstraintSolver.PropagationBaseObject
- Package Functions inherited from Google.OrTools.ConstraintSolver.BaseObject
- Static Package Functions inherited from Google.OrTools.ConstraintSolver.IntExpr
- 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 IntVar.cs.

Member Function Documentation

◆ Accept()

override void Google.OrTools.ConstraintSolver.IntVar.Accept ( ModelVisitor visitor)
inlinevirtual

Reimplemented from Google.OrTools.ConstraintSolver.IntExpr.

Definition at line 141 of file IntVar.cs.

◆ Contains()

virtual bool Google.OrTools.ConstraintSolver.IntVar.Contains ( long v)
inlinevirtual

Reimplemented in Google.OrTools.ConstraintSolver.BooleanVar.

Definition at line 121 of file IntVar.cs.

◆ Dispose()

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

Reimplemented from Google.OrTools.ConstraintSolver.IntExpr.

Definition at line 44 of file IntVar.cs.

◆ GetDomain()

IntVarIterator Google.OrTools.ConstraintSolver.IntVar.GetDomain ( )
inline

Definition at line 174 of file IntVar.cs.

◆ GetHoles()

IntVarIterator Google.OrTools.ConstraintSolver.IntVar.GetHoles ( )
inline

Definition at line 180 of file IntVar.cs.

◆ Index()

int Google.OrTools.ConstraintSolver.IntVar.Index ( )
inline

Definition at line 169 of file IntVar.cs.

◆ IsDifferent()

virtual new IntVar Google.OrTools.ConstraintSolver.IntVar.IsDifferent ( long constant)
inlinevirtual

Reimplemented in Google.OrTools.ConstraintSolver.BooleanVar.

Definition at line 151 of file IntVar.cs.

◆ IsEqual()

virtual new IntVar Google.OrTools.ConstraintSolver.IntVar.IsEqual ( long constant)
inlinevirtual

Reimplemented in Google.OrTools.ConstraintSolver.BooleanVar.

Definition at line 145 of file IntVar.cs.

◆ IsGreaterOrEqual()

virtual new IntVar Google.OrTools.ConstraintSolver.IntVar.IsGreaterOrEqual ( long constant)
inlinevirtual

Reimplemented in Google.OrTools.ConstraintSolver.BooleanVar.

Definition at line 157 of file IntVar.cs.

◆ IsLessOrEqual()

virtual new IntVar Google.OrTools.ConstraintSolver.IntVar.IsLessOrEqual ( long constant)
inlinevirtual

Reimplemented in Google.OrTools.ConstraintSolver.BooleanVar.

Definition at line 163 of file IntVar.cs.

◆ IsVar()

override bool Google.OrTools.ConstraintSolver.IntVar.IsVar ( )
inlinevirtual

Reimplemented from Google.OrTools.ConstraintSolver.IntExpr.

Definition at line 66 of file IntVar.cs.

◆ OldMax()

virtual long Google.OrTools.ConstraintSolver.IntVar.OldMax ( )
inlinevirtual

Definition at line 131 of file IntVar.cs.

◆ OldMin()

virtual long Google.OrTools.ConstraintSolver.IntVar.OldMin ( )
inlinevirtual

Definition at line 126 of file IntVar.cs.

◆ RemoveInterval()

virtual void Google.OrTools.ConstraintSolver.IntVar.RemoveInterval ( long l,
long u )
inlinevirtual

Reimplemented in Google.OrTools.ConstraintSolver.BooleanVar.

Definition at line 87 of file IntVar.cs.

◆ RemoveValue()

virtual void Google.OrTools.ConstraintSolver.IntVar.RemoveValue ( long v)
inlinevirtual

Reimplemented in Google.OrTools.ConstraintSolver.BooleanVar.

Definition at line 82 of file IntVar.cs.

◆ RemoveValues()

virtual void Google.OrTools.ConstraintSolver.IntVar.RemoveValues ( long[] values)
inlinevirtual

Definition at line 91 of file IntVar.cs.

◆ SetValues()

virtual void Google.OrTools.ConstraintSolver.IntVar.SetValues ( long[] values)
inlinevirtual

Definition at line 96 of file IntVar.cs.

◆ Size()

virtual ulong Google.OrTools.ConstraintSolver.IntVar.Size ( )
inlinevirtual

Reimplemented in Google.OrTools.ConstraintSolver.BooleanVar.

Definition at line 116 of file IntVar.cs.

◆ Value()

virtual long Google.OrTools.ConstraintSolver.IntVar.Value ( )
inlinevirtual

Reimplemented in Google.OrTools.ConstraintSolver.BooleanVar.

Definition at line 77 of file IntVar.cs.

◆ Var()

override IntVar Google.OrTools.ConstraintSolver.IntVar.Var ( )
inlinevirtual

Reimplemented from Google.OrTools.ConstraintSolver.IntExpr.

Definition at line 71 of file IntVar.cs.

◆ VarType()

virtual int Google.OrTools.ConstraintSolver.IntVar.VarType ( )
inlinevirtual

Reimplemented in Google.OrTools.ConstraintSolver.BooleanVar.

Definition at line 136 of file IntVar.cs.

◆ WhenBound() [1/2]

virtual void Google.OrTools.ConstraintSolver.IntVar.WhenBound ( Demon d)
inlinevirtual

Reimplemented in Google.OrTools.ConstraintSolver.BooleanVar.

Definition at line 100 of file IntVar.cs.

◆ WhenBound() [2/2]

void Google.OrTools.ConstraintSolver.IntVar.WhenBound ( VoidToVoid closure)
inline

Definition at line 104 of file IntVar.cs.

◆ WhenDomain() [1/2]

virtual void Google.OrTools.ConstraintSolver.IntVar.WhenDomain ( Demon d)
inlinevirtual

Reimplemented in Google.OrTools.ConstraintSolver.BooleanVar.

Definition at line 108 of file IntVar.cs.

◆ WhenDomain() [2/2]

void Google.OrTools.ConstraintSolver.IntVar.WhenDomain ( VoidToVoid closure)
inline

Definition at line 112 of file IntVar.cs.


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