|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjmarkov.jmdp.solvers.ProbabilitySolver<S,A>
S
- State classsA
- Actions class.public 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 sparse matrixes. Of course this class is not needed, and it is here for idiotic reasons and the extreme arrogance of Mr. Sarmiento. To do this jmdp should pass the problem to JMarkov
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 | |
---|---|
ValueFunction<S> |
getProbability()
|
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 |
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) throws SolverException
problem
- discrete time , infinite horizon problem
SolverException
public ProbabilitySolver(CTMDP<S,A> problem, DecisionRule<S,A> dr)
problem
- continuous time , infinite horizon problemdr
- public ProbabilitySolver(CTMDP<S,A> problem) throws SolverException
problem
- continuous time , infinite horizon problem
SolverException
Method 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 methodspublic ValueFunction<S> getProbability()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |