public final class BinPackingSolution extends Object
This class represents a solution to a
BinPackingproblem instance. Although you cannot construct instances of it directly (it doesn't have a public constructor), you can use the methods of this class to inspect the solution such as number of bins, and contents of the bins.
costpublic final int cost()Gets the cost of this solution (i.e., number of bins used).
getBinpublic final Bin getBin
(int i)Gets one of the bins in this solution.
i- The id of the bin.
- The i-th bin in the solution.