BinPacker.OnePerGroupConstraint (bin_packer v0.1.0) View Source

Constrains the solutions to those where only one bin in a group of bins that share the same attribute may have a ball with another attribute value.

For example, In the "machine assignment" scenario: With machines as bins, processes as balls, processes belong to different services and machines belong to datacenters. You only want one process from each service to be placed per datacenter, to ensure service survivability when a datacenter goes down.