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

Public Member Functions

 Pack (Solver s, IntVarVector vars, int number_of_bins)
 
void AddWeightedSumLessOrEqualConstantDimension (long[] weights, long[] bounds)
 
void AddWeightedSumLessOrEqualConstantDimension (LongToLong weights, long[] bounds)
 
void AddWeightedSumLessOrEqualConstantDimension (LongLongToLong weights, long[] bounds)
 
void AddWeightedSumEqualVarDimension (long[] weights, IntVarVector loads)
 
void AddWeightedSumEqualVarDimension (LongLongToLong weights, IntVarVector loads)
 
void AddSumVariableWeightsLessOrEqualConstantDimension (IntVarVector usage, long[] capacity)
 
void AddWeightedSumOfAssignedDimension (long[] weights, IntVar cost_var)
 
void AddCountUsedBinDimension (IntVar count_var)
 
void AddCountAssignedItemsDimension (IntVar count_var)
 
override void Post ()
 
void ClearAll ()
 
void PropagateDelayed ()
 
override void InitialPropagateWrapper ()
 
void Propagate ()
 
void OneDomain (int var_index)
 
override string ToString ()
 
bool IsUndecided (int var_index, int bin_index)
 
void SetImpossible (int var_index, int bin_index)
 
void Assign (int var_index, int bin_index)
 
bool IsAssignedStatusKnown (int var_index)
 
bool IsPossible (int var_index, int bin_index)
 
IntVar AssignVar (int var_index, int bin_index)
 
void SetAssigned (int var_index)
 
void SetUnassigned (int var_index)
 
void RemoveAllPossibleFromBin (int bin_index)
 
void AssignAllPossibleToBin (int bin_index)
 
void AssignFirstPossibleToBin (int bin_index)
 
void AssignAllRemainingItems ()
 
void UnassignAllRemainingItems ()
 
override void Accept (ModelVisitor visitor)
 
- Public Member Functions inherited from Google.OrTools.ConstraintSolver.Constraint
IntExpr Abs ()
 
IntExpr Square ()
 
 Constraint (Solver solver)
 
bool IsCastConstraint ()
 
virtual IntVar Var ()
 
delegate string SwigDelegateConstraint_0 ()
 
delegate string SwigDelegateConstraint_1 ()
 
delegate string SwigDelegateConstraint_2 ()
 
delegate void SwigDelegateConstraint_3 ()
 
delegate void SwigDelegateConstraint_4 ()
 
- 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 ()
 
- Public Member Functions inherited from Google.OrTools.ConstraintSolver.IConstraintWithStatus
Solver solver ()
 

Protected Member Functions

override void Dispose (bool disposing)
 
- Protected Member Functions inherited from Google.OrTools.ConstraintSolver.Constraint
- 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.Constraint
static implicit operator IntVar (Constraint eq)
 
static implicit operator IntExpr (Constraint eq)
 
static IntExpr operator+ (Constraint a, Constraint b)
 
static IntExpr operator+ (Constraint a, long v)
 
static IntExpr operator+ (long v, Constraint a)
 
static IntExpr operator- (Constraint a, Constraint b)
 
static IntExpr operator- (Constraint a, long v)
 
static IntExpr operator- (long v, Constraint a)
 
static IntExpr operator* (Constraint a, Constraint b)
 
static IntExpr operator* (Constraint a, long v)
 
static IntExpr operator* (long v, Constraint a)
 
static IntExpr operator/ (Constraint a, long v)
 
static IntExpr operator- (Constraint a)
 
static WrappedConstraint operator== (Constraint a, long v)
 
static WrappedConstraint operator== (long v, Constraint a)
 
static WrappedConstraint operator!= (Constraint a, long v)
 
static WrappedConstraint operator!= (long v, Constraint a)
 
static WrappedConstraint operator>= (Constraint a, long v)
 
static WrappedConstraint operator>= (long v, Constraint a)
 
static WrappedConstraint operator> (Constraint a, long v)
 
static WrappedConstraint operator> (long v, Constraint a)
 
static WrappedConstraint operator<= (Constraint a, long v)
 
static WrappedConstraint operator<= (long v, Constraint a)
 
static WrappedConstraint operator< (Constraint a, long v)
 
static WrappedConstraint operator< (long v, Constraint a)
 
static WrappedConstraint operator>= (Constraint a, Constraint b)
 
static WrappedConstraint operator> (Constraint a, Constraint b)
 
static WrappedConstraint operator<= (Constraint a, Constraint b)
 
static WrappedConstraint operator< (Constraint a, Constraint b)
 
static ConstraintEquality operator== (Constraint a, Constraint b)
 
static ConstraintEquality operator!= (Constraint a, Constraint b)
 
- Protected Attributes inherited from Google.OrTools.ConstraintSolver.BaseObject
bool swigCMemOwn
 
- Package Functions inherited from Google.OrTools.ConstraintSolver.Constraint
- Package Functions inherited from Google.OrTools.ConstraintSolver.PropagationBaseObject
- Package Functions inherited from Google.OrTools.ConstraintSolver.BaseObject
- Static Package Functions inherited from Google.OrTools.ConstraintSolver.Constraint
- 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 Pack.cs.

Constructor & Destructor Documentation

◆ Pack()

Google.OrTools.ConstraintSolver.Pack.Pack ( Solver s,
IntVarVector vars,
int number_of_bins )
inline

Definition at line 75 of file Pack.cs.

Member Function Documentation

◆ Accept()

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

Reimplemented from Google.OrTools.ConstraintSolver.Constraint.

Definition at line 204 of file Pack.cs.

◆ AddCountAssignedItemsDimension()

void Google.OrTools.ConstraintSolver.Pack.AddCountAssignedItemsDimension ( IntVar count_var)
inline

Definition at line 114 of file Pack.cs.

◆ AddCountUsedBinDimension()

void Google.OrTools.ConstraintSolver.Pack.AddCountUsedBinDimension ( IntVar count_var)
inline

Definition at line 110 of file Pack.cs.

◆ AddSumVariableWeightsLessOrEqualConstantDimension()

void Google.OrTools.ConstraintSolver.Pack.AddSumVariableWeightsLessOrEqualConstantDimension ( IntVarVector usage,
long[] capacity )
inline

Definition at line 101 of file Pack.cs.

◆ AddWeightedSumEqualVarDimension() [1/2]

void Google.OrTools.ConstraintSolver.Pack.AddWeightedSumEqualVarDimension ( long[] weights,
IntVarVector loads )
inline

Definition at line 91 of file Pack.cs.

◆ AddWeightedSumEqualVarDimension() [2/2]

void Google.OrTools.ConstraintSolver.Pack.AddWeightedSumEqualVarDimension ( LongLongToLong weights,
IntVarVector loads )
inline

Definition at line 96 of file Pack.cs.

◆ AddWeightedSumLessOrEqualConstantDimension() [1/3]

void Google.OrTools.ConstraintSolver.Pack.AddWeightedSumLessOrEqualConstantDimension ( long[] weights,
long[] bounds )
inline

Definition at line 79 of file Pack.cs.

◆ AddWeightedSumLessOrEqualConstantDimension() [2/3]

void Google.OrTools.ConstraintSolver.Pack.AddWeightedSumLessOrEqualConstantDimension ( LongLongToLong weights,
long[] bounds )
inline

Definition at line 87 of file Pack.cs.

◆ AddWeightedSumLessOrEqualConstantDimension() [3/3]

void Google.OrTools.ConstraintSolver.Pack.AddWeightedSumLessOrEqualConstantDimension ( LongToLong weights,
long[] bounds )
inline

Definition at line 83 of file Pack.cs.

◆ AddWeightedSumOfAssignedDimension()

void Google.OrTools.ConstraintSolver.Pack.AddWeightedSumOfAssignedDimension ( long[] weights,
IntVar cost_var )
inline

Definition at line 106 of file Pack.cs.

◆ Assign()

void Google.OrTools.ConstraintSolver.Pack.Assign ( int var_index,
int bin_index )
inline

Definition at line 156 of file Pack.cs.

◆ AssignAllPossibleToBin()

void Google.OrTools.ConstraintSolver.Pack.AssignAllPossibleToBin ( int bin_index)
inline

Definition at line 188 of file Pack.cs.

◆ AssignAllRemainingItems()

void Google.OrTools.ConstraintSolver.Pack.AssignAllRemainingItems ( )
inline

Definition at line 196 of file Pack.cs.

◆ AssignFirstPossibleToBin()

void Google.OrTools.ConstraintSolver.Pack.AssignFirstPossibleToBin ( int bin_index)
inline

Definition at line 192 of file Pack.cs.

◆ AssignVar()

IntVar Google.OrTools.ConstraintSolver.Pack.AssignVar ( int var_index,
int bin_index )
inline

Definition at line 170 of file Pack.cs.

◆ ClearAll()

void Google.OrTools.ConstraintSolver.Pack.ClearAll ( )
inline

Definition at line 122 of file Pack.cs.

◆ Dispose()

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

Reimplemented from Google.OrTools.ConstraintSolver.Constraint.

Definition at line 44 of file Pack.cs.

◆ InitialPropagateWrapper()

override void Google.OrTools.ConstraintSolver.Pack.InitialPropagateWrapper ( )
inlinevirtual

Reimplemented from Google.OrTools.ConstraintSolver.Constraint.

Definition at line 130 of file Pack.cs.

◆ IsAssignedStatusKnown()

bool Google.OrTools.ConstraintSolver.Pack.IsAssignedStatusKnown ( int var_index)
inline

Definition at line 160 of file Pack.cs.

◆ IsPossible()

bool Google.OrTools.ConstraintSolver.Pack.IsPossible ( int var_index,
int bin_index )
inline

Definition at line 165 of file Pack.cs.

◆ IsUndecided()

bool Google.OrTools.ConstraintSolver.Pack.IsUndecided ( int var_index,
int bin_index )
inline

Definition at line 147 of file Pack.cs.

◆ OneDomain()

void Google.OrTools.ConstraintSolver.Pack.OneDomain ( int var_index)
inline

Definition at line 138 of file Pack.cs.

◆ Post()

override void Google.OrTools.ConstraintSolver.Pack.Post ( )
inlinevirtual

Reimplemented from Google.OrTools.ConstraintSolver.Constraint.

Definition at line 118 of file Pack.cs.

◆ Propagate()

void Google.OrTools.ConstraintSolver.Pack.Propagate ( )
inline

Definition at line 134 of file Pack.cs.

◆ PropagateDelayed()

void Google.OrTools.ConstraintSolver.Pack.PropagateDelayed ( )
inline

Definition at line 126 of file Pack.cs.

◆ RemoveAllPossibleFromBin()

void Google.OrTools.ConstraintSolver.Pack.RemoveAllPossibleFromBin ( int bin_index)
inline

Definition at line 184 of file Pack.cs.

◆ SetAssigned()

void Google.OrTools.ConstraintSolver.Pack.SetAssigned ( int var_index)
inline

Definition at line 176 of file Pack.cs.

◆ SetImpossible()

void Google.OrTools.ConstraintSolver.Pack.SetImpossible ( int var_index,
int bin_index )
inline

Definition at line 152 of file Pack.cs.

◆ SetUnassigned()

void Google.OrTools.ConstraintSolver.Pack.SetUnassigned ( int var_index)
inline

Definition at line 180 of file Pack.cs.

◆ ToString()

override string Google.OrTools.ConstraintSolver.Pack.ToString ( )
inlinevirtual

Reimplemented from Google.OrTools.ConstraintSolver.Constraint.

Definition at line 142 of file Pack.cs.

◆ UnassignAllRemainingItems()

void Google.OrTools.ConstraintSolver.Pack.UnassignAllRemainingItems ( )
inline

Definition at line 200 of file Pack.cs.


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