| Constructor and Description |
|---|
WagnerWhitin(int initialInventory,
int lastStage,
int maxInventory,
int maxBackorders,
int truckSize,
double K,
double b,
double price,
double cost,
double h,
int[] demand)
Crates a dynamic economic lot sizing problem to be solved by Wagner
Whitin algorithm.
|
| Modifier and Type | Method and Description |
|---|---|
InvLevel |
destination(InvLevel i,
Order a,
int t)
State where the system will end up if action a is taken from state i at
time t.
|
Actions<Order> |
feasibleActions(InvLevel i,
int t)
Returns the actions available at this state i and at this stage
t .
|
double |
finalCost(InvLevel i)
This method returns the cost incurred if the last stage ends
with the system at state i.
|
double |
getOptimalCost(int inventory)
Returns the optimal cost for this level of starting inventory.
|
double |
immediateCost(InvLevel i,
Order a,
int t)
This function must return the Immediate cost incurred when
taking action a from state i
|
static void |
main(java.lang.String[] a)
Test Program.
|
defaultFinalCost, getHorizon, getStatesdebug, debug, debug, getDebugLevel, getOptimalPolicy, getOptimalValueFunction, getReporter, getSolver, isFinite, isSolved, operation, printSolution, printSolution, setDebugLevel, setReporter, setSolver, solvepublic WagnerWhitin(int initialInventory,
int lastStage,
int maxInventory,
int maxBackorders,
int truckSize,
double K,
double b,
double price,
double cost,
double h,
int[] demand)
initialInventory - Inventory at time t=0.lastStage - the last stage of the problemmaxInventory - maximum physical capacity in inventory, warehouse size.maxBackorders - maximum backorders allowedtruckSize - maximum items in each fixed cost order. Orders can be greater
than this value, but will be charged more than one fixed cost.K - fixed cost per orderb - unit cost per backordered item per stageprice - unit price for all stagescost - unit costo for all stagesh - inventory percentual holding cost as a fraction of costdemand - demand of items in each stagepublic double getOptimalCost(int inventory)
throws SolverException
inventory - SolverExceptionpublic double immediateCost(InvLevel i, Order a, int t)
FiniteMDPimmediateCost in class FiniteMDP<InvLevel,Order>i - Current statea - Actiont - Current time stagepublic double finalCost(InvLevel i)
FiniteMDPpublic Actions<Order> feasibleActions(InvLevel i, int t)
FiniteMDPfeasibleActions in class FiniteMDP<InvLevel,Order>i - Current Statet - Time stagepublic InvLevel destination(InvLevel i, Order a, int t)
FiniteDPdestination in class FiniteDP<InvLevel,Order>i - Current statea - Current actiont - Time stage.public static void main(java.lang.String[] a)
throws java.lang.Exception
a - java.lang.Exception