C++ Reference: class Pack
Note: This documentation is automatically generated.
Method | |
---|---|
Accept | Return type: Arguments: |
AddCountAssignedItemsDimension | Return type: Arguments: This dimension links 'count_var' to the actual number of items assigned to a bin in the pack. |
AddCountUsedBinDimension | Return type: Arguments: This dimension links 'count_var' to the actual number of bins used in the pack. |
AddSumVariableWeightsLessOrEqualConstantDimension | Return type: Arguments: This dimension imposes: forall b in bins, sum (i in items: usage[i] * is_assigned(i, b)) <= capacity[b] where is_assigned(i, b) is true if and only if item i is assigned to the bin b. This can be used to model shapes of items by linking variables of the same item on parallel dimensions with an allowed assignment constraint. |
AddWeightedSumEqualVarDimension | Return type: Arguments: This dimension imposes that for all bins b, the weighted sum (weights[i]) of all objects i assigned to 'b' is equal to loads[b]. |
AddWeightedSumEqualVarDimension | Return type: Arguments: This dimension imposes that for all bins b, the weighted sum (weights->Run(i, b)) of all objects i assigned to 'b' is equal to loads[b]. |
AddWeightedSumLessOrEqualConstantDimension | Return type: Arguments: This dimension imposes that for all bins b, the weighted sum (weights[i]) of all objects i assigned to 'b' is less or equal 'bounds[b]'. |
AddWeightedSumLessOrEqualConstantDimension | Return type: Arguments: This dimension imposes that for all bins b, the weighted sum (weights->Run(i)) of all objects i assigned to 'b' is less or equal to 'bounds[b]'. Ownership of the callback is transferred to the pack constraint. |
AddWeightedSumLessOrEqualConstantDimension | Return type: Arguments: This dimension imposes that for all bins b, the weighted sum (weights->Run(i, b) of all objects i assigned to 'b' is less or equal to 'bounds[b]'. Ownership of the callback is transferred to the pack constraint. |
AddWeightedSumOfAssignedDimension | Return type: Arguments: This dimension enforces that cost_var == sum of weights[i] for all objects 'i' assigned to a bin. |
Assign | Return type: Arguments: |
AssignAllPossibleToBin | Return type: Arguments: |
AssignAllRemainingItems | Return type: |
AssignFirstPossibleToBin | Return type: Arguments: |
AssignVar | Return type: Arguments: |
ClearAll | Return type: |
DebugString | Return type: |
InitialPropagate | Return type: |
IsAssignedStatusKnown | Return type: Arguments: |
IsPossible | Return type: Arguments: |
IsUndecided | Return type: Arguments: |
OneDomain | Return type: Arguments: |
Pack | Arguments: |
~Pack | |
Post | Return type: |
Propagate | Return type: |
PropagateDelayed | Return type: |
RemoveAllPossibleFromBin | Return type: Arguments: |
SetAssigned | Return type: Arguments: |
SetImpossible | Return type: Arguments: |
SetUnassigned | Return type: Arguments: |
UnassignAllRemainingItems | Return type: |