jenes.tutorials.problem6
Class KnapsackProblem
java.lang.Object
jenes.tutorials.problem6.KnapsackProblem
public class KnapsackProblem
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KnapsackProblem
public KnapsackProblem(double[] utilities,
double[] weights)
run
public void run()
getCapacity
public double getCapacity()
setCapacity
public void setCapacity(double c)
getUtilities
public double[] getUtilities()
getWeights
public double[] getWeights()
build
public static KnapsackProblem build(int n)
main
public static void main(java.lang.String[] args)