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, getStates
debug, debug, debug, getDebugLevel, getOptimalPolicy, getOptimalValueFunction, getReporter, getSolver, isFinite, isSolved, operation, printSolution, printSolution, setDebugLevel, setReporter, setSolver, solve
public double prob(InvLevel i, InvLevel j, Order a, int t)
FiniteMDP
public double immediateCost(InvLevel i, Order a, int t)
FiniteMDP
immediateCost
in class FiniteMDP<InvLevel,Order>
i
- Current statea
- Actiont
- Current time stagepublic double finalCost(InvLevel i)
FiniteMDP
public Actions<Order> feasibleActions(InvLevel i, int t)
FiniteMDP
feasibleActions
in class FiniteMDP<InvLevel,Order>
i
- Current Statet
- Time stagepublic States<InvLevel> reachable(InvLevel i, Order a, int t)
FiniteMDP
public static void main(java.lang.String[] a) throws java.lang.Exception
a
- Not usedjava.lang.Exception