S
- States classA
- Actions classE
- Events classpublic abstract class FiniteMDPEv<S extends State,A extends Action,E extends Event> extends FiniteMDP<S,A>
Constructor and Description |
---|
FiniteMDPEv(States<S> initial,
int horizon) |
Modifier and Type | Method and Description |
---|---|
abstract Events<E> |
activeEvents(S i,
A a,
int t)
Set of events that are active from state i given that action a is taken.
|
abstract double |
immediateCost(S i,
A a,
E e,
int t)
Reward received when the current state is i, the action taken is a and
event e occurs.
|
double |
immediateCost(S i,
A a,
int t)
This function must return the Immediate cost incurred when
taking action a from state i
|
abstract double |
prob(S i,
E e,
int t)
Conditional probability.
|
abstract double |
prob(S i,
S j,
A a,
E e,
int t)
Conditional probability.
|
double |
prob(S i,
S j,
A a,
int t)
This is the probability of going from state i to state j by
taking the action a at stage t.
|
abstract States<S> |
reachable(S i,
A a,
E e,
int t)
Set of reachable states from state i given that action a is taken and
event e occurs.
|
States<S> |
reachable(S i,
A a,
int t)
Set of States that can be reached from this state i, at this
stage t, after taking the acton a.
|
defaultFinalCost, feasibleActions, finalCost, getHorizon, getStates
debug, debug, debug, getDebugLevel, getOptimalPolicy, getOptimalValueFunction, getReporter, getSolver, isFinite, isSolved, operation, printSolution, printSolution, setDebugLevel, setReporter, setSolver, solve
public double immediateCost(S i, A a, int t)
FiniteMDP
public abstract double immediateCost(S i, A a, E e, int t)
i
- current statea
- action takene
- event that occurst
- current stagepublic double prob(S i, S j, A a, int t)
FiniteMDP
public abstract double prob(S i, S j, A a, E e, int t)
i
- current statej
- state to reacha
- action taken (given)e
- event that occurs (given)t
- current stagepublic abstract double prob(S i, E e, int t)
i
- current statee
- event that occurst
- current stagepublic States<S> reachable(S i, A a, int t)
FiniteMDP
public abstract States<S> reachable(S i, A a, E e, int t)
i
- current statea
- action takene
- event that occurst
- current stage