public class InfStochasticDemand extends DTMDP<InvLevel,Order>
| Constructor and Description |
|---|
InfStochasticDemand(int maxInv,
int maxBO,
int truckSize,
double truckCost,
double backorderCost,
double price,
double cost,
double holdingCost,
double intRate,
double expDemand,
boolean discounted) |
| Modifier and Type | Method and Description |
|---|---|
Actions<Order> |
feasibleActions(InvLevel i)
Returns the set of actions available at this state.
|
double |
immediateCost(InvLevel i,
Order a)
Cost incurred when taking action a from state i
|
static void |
main(java.lang.String[] a)
Simple 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 InfStochasticDemand(int maxInv,
int maxBO,
int truckSize,
double truckCost,
double backorderCost,
double price,
double cost,
double holdingCost,
double intRate,
double expDemand,
boolean discounted)
maxInv - maximum physical capacity in inventory, warehouse size.maxBO - 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.truckCost - fixed cost per orderbackorderCost - unit cost per backordered item per stageprice - unit pricecost - unit aquistion costoholdingCost - non-finantial holding cost (it does NOT include finantial
cost)intRate - interest per periodexpDemand - demand meandiscounted - Whether a discounted model (rather than average) is to be
used.public States<InvLevel> reachable(InvLevel i, Order a)
DTMDPpublic double prob(InvLevel i, InvLevel j, Order a)
DTMDPpublic Actions<Order> feasibleActions(InvLevel i)
InfiniteMDPfeasibleActions in class InfiniteMDP<InvLevel,Order>i - Current Statepublic double immediateCost(InvLevel i, Order a)
DTMDPimmediateCost in class DTMDP<InvLevel,Order>i - Current Statea - Current Actionpublic void printMatrices()
public static void main(java.lang.String[] a)
throws SolverException
a - SolverException