public class ControlProdNonEvents extends DTMDP<InvLevel,Order>
| Constructor and Description |
|---|
ControlProdNonEvents(int maxInventory,
double fixedCost,
double cost,
double price,
double holdingCost,
double interestRate,
double expDemand) |
| Modifier and Type | Method and Description |
|---|---|
Actions<Order> |
feasibleActions(InvLevel i)
Returns the set of actions available at this state.
|
int[] |
getOptimalOrderSize()
Return the optimal order size for this inventory level.
|
int |
getOptimalOrderSize(int invLevel)
Return the optimal order size for this inventory level.
|
double |
getValueFunction(int invLevel)
Gets the optimal value function for this initial inventory level.
|
double |
immediateCost(InvLevel i,
Order a)
Cost incurred when taking action a from state i
|
static void |
main(java.lang.String[] a)
Small test program
|
void |
printMatrices()
Very stupid method to see what this is doing!!
|
double |
prob(InvLevel i,
InvLevel j,
Order a)
Probability of going from state i to state j by taking the
action a
|
States<InvLevel> |
reachable(InvLevel i,
Order a)
Set of states that can be reached from this state i, after
taking the action a.
|
getSteadyStateProbabilities, setProbabilitySolver, solvegetAllStates, getNumStates, getSolverdebug, debug, debug, getDebugLevel, getOptimalPolicy, getOptimalValueFunction, getReporter, isFinite, isSolved, operation, printSolution, printSolution, setDebugLevel, setReporter, setSolver, solvepublic ControlProdNonEvents(int maxInventory,
double fixedCost,
double cost,
double price,
double holdingCost,
double interestRate,
double expDemand)
maxInventory - maximum physical capacity in inventory, warehouse size. than
this value, but will be charged more than one fixed cost.fixedCost - fixed cost per orderprice - unit price for all stagescost - unit costo for all stagesholdingCost - holding cost per unit and per unit of time.interestRate - interest rate per period.expDemand - demand meanpublic double getValueFunction(int invLevel)
throws SolverException
invLevel - inventory level.SolverExceptionpublic int getOptimalOrderSize(int invLevel)
invLevel - public int[] getOptimalOrderSize()
public States<InvLevel> reachable(InvLevel i, Order a)
DTMDPpublic double prob(InvLevel i, InvLevel j, Order a)
DTMDPpublic double immediateCost(InvLevel i, Order a)
DTMDPimmediateCost in class DTMDP<InvLevel,Order>i - Current Statea - Current Actionpublic Actions<Order> feasibleActions(InvLevel i)
InfiniteMDPfeasibleActions in class InfiniteMDP<InvLevel,Order>i - Current Statepublic void printMatrices()
public static void main(java.lang.String[] a)
throws SolverException
a - SolverException