Exemple #1
0
 private void RemoveItem(Bin myElement, BinItem myItemToRemove)
 {
     // Remove an item in a source Bin of the Solution list. This method is invoked only by QualifySolution()
     myElement.Employ -= myItemToRemove.Size;
     myElement.Reject += myItemToRemove.Size;
     myElement.ItemsAssigned.Remove(myItemToRemove);
 }
Exemple #2
0
 private void AssignItem(Bin myElement, BinItem myItemToAssign)
 {
     // Add a new item of the ListOfItems at the current element of the Solution List passed in
     // This method is also invoked by QualifySolution() to move an item from one Bin to another
     myElement.ItemsAssigned.Add(myItemToAssign);
     myElement.Employ += myItemToAssign.Size;
     myElement.Reject -= myItemToAssign.Size;
 }