public class Inventory extends FiniteMDP<InvLevel,Order>
| Constructor and Description |
|---|
Inventory(int lastStage,
States<InvLevel> initSet,
int M,
int K,
double[] pr,
double[] qr,
double[] F) |
| Modifier and Type | Method and Description |
|---|---|
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 |
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) |
double |
prob(InvLevel i,
InvLevel j,
Order a,
int t)
This is the probability of going from state i to state j by
taking the action a at stage t.
|
States<InvLevel> |
reachable(InvLevel i,
Order a,
int t)
Set of States that can be reached from this state i, at this
stage t, after taking the acton a.
|
defaultFinalCost, getHorizon, getStatesdebug, debug, debug, getDebugLevel, getOptimalPolicy, getOptimalValueFunction, getReporter, getSolver, isFinite, isSolved, operation, printSolution, printSolution, setDebugLevel, setReporter, setSolver, solvepublic double prob(InvLevel i, InvLevel j, Order a, int t)
FiniteMDPpublic 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 States<InvLevel> reachable(InvLevel i, Order a, int t)
FiniteMDPpublic static void main(java.lang.String[] a)
throws java.lang.Exception
a - Not usedjava.lang.Exception