org.cocome.tradingsystem.inventory.application.productdispatcher
Interface OptimisationSolverIf

All Known Implementing Classes:
AmplStarter

public interface OptimisationSolverIf

For description see method solveOptimization()

Required for UC8

Author:
kelsaka

Method Summary
 java.util.Hashtable<StoreTO,java.util.Collection<ProductAmountTO>> solveOptimization(java.util.Collection<ProductAmountTO> requiredProductAmounts, java.util.Hashtable<Store,java.util.Collection<StockItem>> storeStockItems, java.util.Hashtable<Store,java.lang.Integer> storeDistances)
          Solves an optimisation problem: Optimal transportation costs with respect to The required products and the required amount The available products and their provided amount per providing store The distances between the requiring and the providing store
 

Method Detail

solveOptimization

java.util.Hashtable<StoreTO,java.util.Collection<ProductAmountTO>> solveOptimization(java.util.Collection<ProductAmountTO> requiredProductAmounts,
                                                                                     java.util.Hashtable<Store,java.util.Collection<StockItem>> storeStockItems,
                                                                                     java.util.Hashtable<Store,java.lang.Integer> storeDistances)
Solves an optimisation problem: Optimal transportation costs with respect to
  1. The required products and the required amount
  2. The available products and their provided amount per providing store
  3. The distances between the requiring and the providing store

Parameters:
requiredProductAmounts - Products/Amounts required by the requiring store
storeStockItems - Stock item availability per store.
storeDistances - Distances between requiring store and each providing stores
Returns:
A Hashtable: For each Store the product/amount tuple is given. Those products/amounts have to be delivered by the store.