applications
Class MaxProfitBBLoading

java.lang.Object
  |
  +--applications.MaxProfitBBLoading

public class MaxProfitBBLoading
extends java.lang.Object


Constructor Summary
MaxProfitBBLoading()
           
 
Method Summary
static void main(java.lang.String[] args)
          test program
static int maxLoading(int[] weight, int capacity, int[] bestLoading)
          max profit branch-and-bound search of solution space
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MaxProfitBBLoading

public MaxProfitBBLoading()
Method Detail

maxLoading

public static int maxLoading(int[] weight,
                             int capacity,
                             int[] bestLoading)
max profit branch-and-bound search of solution space
Parameters:
weight - array of container weights
capacity - capacity of ship
bestLoading - set to best loading
Returns:
weight of best loading

main

public static void main(java.lang.String[] args)
test program