|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjmdp.solvers.ProbabilitySolver<S,A>
S
- stateA
- actionpublic class ProbabilitySolver<S extends State,A extends Action>
This class is designed to calculate the long run probabilities of infinite horizon problem. It uses Jacobi and Power methods for sparce matrixes.
Field Summary | |
---|---|
ValueFunction<S> |
probability
|
Constructor Summary | |
---|---|
ProbabilitySolver(CTMDP<S,A> problem)
Initializes a new solver for continuous chains and solves the probabilities for the optimal policy. |
|
ProbabilitySolver(CTMDP<S,A> problem,
DecisionRule<S,A> dr)
Initializes a new solver for continuous chains and solves the probabilities for a particular decision rule. |
|
ProbabilitySolver(DTMDP<S,A> problem)
Initializes a new solver for discrete chains and solves the probabilities for the optimal policy. |
|
ProbabilitySolver(DTMDP<S,A> problem,
DecisionRule<S,A> dr)
Initializes a new solver for discrete chains |
Method Summary | |
---|---|
boolean |
isSolved()
|
void |
setGaussSeidel(boolean val)
The GaussSeidel modification of the ValueIteration method is a change that is garanteed to have a performance at least as good as the methods without the modifications. |
void |
setJacobi(boolean val)
|
void |
solve()
Solves the probabilities |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public ValueFunction<S extends State> probability
Constructor Detail |
---|
public ProbabilitySolver(DTMDP<S,A> problem, DecisionRule<S,A> dr)
problem
- discrete time , infinite horizon problemdr
- decision rule to be evaluatedpublic ProbabilitySolver(DTMDP<S,A> problem)
problem
- discrete time , infinite horizon problempublic ProbabilitySolver(CTMDP<S,A> problem, DecisionRule<S,A> dr)
problem
- continuous time , infinite horizon problempublic ProbabilitySolver(CTMDP<S,A> problem)
problem
- continuous time , infinite horizon problemMethod Detail |
---|
public boolean isSolved()
public void solve()
public void setGaussSeidel(boolean val)
val
- sets whether or not the GaussSeidel modification will be used.public void setJacobi(boolean val)
val
- true to use jacobi methods
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |