|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjmarkov.jmdp.solvers.Solver<S,A>
jmarkov.jmdp.solvers.AbstractInfiniteSolver<S,A>
jmarkov.jmdp.solvers.AbstractAverageSolver<S,A>
jmarkov.jmdp.solvers.RelativeValueIterationSolver<S,A>
S
- States class.A
- Actions class.public class RelativeValueIterationSolver<S extends State,A extends Action>
This class solves the average cost criteria for infinite horizon problems
Field Summary |
---|
Fields inherited from class jmarkov.jmdp.solvers.Solver |
---|
policy, printProcessTime, printValueFunction, problem, solved, valueFunction |
Constructor Summary | |
---|---|
RelativeValueIterationSolver(CTMDP<S,A> problem)
Creates a new solver for a continuous time, infinite horizon problem. |
|
RelativeValueIterationSolver(CTMDP<S,A> problem,
double factor)
Creates a new solver for a continuous time, infinite horizon problem to be solved with the modified relative value iteration method. |
|
RelativeValueIterationSolver(DTMDP<S,A> problem)
The constructor method exclusively receives a discrte time infinite horizon problem of the type DTMDP. |
|
RelativeValueIterationSolver(DTMDP<S,A> problem,
double factor)
Creates a new solver for the given discrete time, infinite horizon problem. |
Method Summary | |
---|---|
long |
getIterations()
|
long |
getProcessTime()
|
java.lang.String |
label()
The sub classes must return the Solver name. |
void |
setFactor(double factor)
Sets the factor for the modified relative value iteration method. |
void |
setPrintValueFunction(boolean val)
Option to print the final value function for each state. |
Solution<S,A> |
solve()
Called to solve the problem. |
Methods inherited from class jmarkov.jmdp.solvers.AbstractInfiniteSolver |
---|
getDiscreteProblem, getProblem, printSolution |
Methods inherited from class jmarkov.jmdp.solvers.Solver |
---|
description, getOptimalPolicy, getOptimalValueFunction, getValueFunction, isSolved, printSolution, setPrintProcessTime, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface jmarkov.basic.JMarkovElement |
---|
equals |
Constructor Detail |
---|
public RelativeValueIterationSolver(DTMDP<S,A> problem)
problem
- the structure of the problem of type InfiniteMDPpublic RelativeValueIterationSolver(DTMDP<S,A> problem, double factor)
problem
- problemfactor
- factorpublic RelativeValueIterationSolver(CTMDP<S,A> problem)
problem
- continuous time, infinite horizon problempublic RelativeValueIterationSolver(CTMDP<S,A> problem, double factor)
problem
- continuous time, infinite horizon problemfactor
- Method Detail |
---|
public void setPrintValueFunction(boolean val)
Solver
setPrintValueFunction
in class Solver<S extends State,A extends Action>
val
- True if the value function is to be reported.public void setFactor(double factor)
factor
- A number between 0 and 1.public java.lang.String label()
Solver
label
in interface JMarkovElement
label
in class Solver<S extends State,A extends Action>
Solver.toString()
public Solution<S,A> solve()
Solver
solve
in class Solver<S extends State,A extends Action>
public final long getProcessTime()
getProcessTime
in class Solver<S extends State,A extends Action>
public final long getIterations()
getIterations
in class AbstractInfiniteSolver<S extends State,A extends Action>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |