public class BinPacking extends Object
Modifier and Type | Method and Description |
---|---|
static <T> List<List<T>> |
packForFixedBinNumber(Iterable<T> items,
java.util.function.Function<T,Long> weightFunc,
int binNumber)
A bin packing implementation for fixed bin number.
|
static <T> List<List<T>> |
packForOrdered(Iterable<T> items,
java.util.function.Function<T,Long> weightFunc,
long targetWeight)
Ordered packing for input items.
|
public static <T> List<List<T>> packForOrdered(Iterable<T> items, java.util.function.Function<T,Long> weightFunc, long targetWeight)
public static <T> List<List<T>> packForFixedBinNumber(Iterable<T> items, java.util.function.Function<T,Long> weightFunc, int binNumber)
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.