S - States class.A - Actions class.public class RelativeValueIterationSolver<S extends State,A extends Action> extends AbstractAverageSolver<S,A>
| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getGain() |
long |
getIterations() |
long |
getProcessTime() |
java.lang.String |
label()
The sub classes must return the Solver name.
|
void |
printSolution()
Prints the solution in the default PrintWriter (System.out)
|
void |
printSolution(java.io.PrintWriter pw)
Prints the solution on a given PrintWriter.
|
void |
setFactor(double factor)
Sets the factor for the modified relative value iteration method.
|
void |
setPrintBias(boolean val) |
void |
setPrintGain(boolean val) |
void |
setPrintValueFunction(boolean val)
Option to print the final value function for each state.
|
Solution<S,A> |
solve()
Called to solve the problem.
|
getProblemdescription, getOptimalPolicy, getOptimalValueFunction, getValueFunction, isSolved, setPrintProcessTime, toStringequals, getClass, hashCode, notify, notifyAll, wait, wait, waitequalspublic 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 - public void setPrintValueFunction(boolean val)
Solverpublic void setFactor(double factor)
factor - A number between 0 and 1.public java.lang.String label()
Solverlabel in interface JMarkovElementlabel in class Solver<S extends State,A extends Action>Solver.toString()public Solution<S,A> solve()
Solverpublic final long getProcessTime()
public final long getIterations()
getIterations in class AbstractInfiniteSolver<S extends State,A extends Action>public void setPrintBias(boolean val)
public void setPrintGain(boolean val)
public double getGain()
public void printSolution(java.io.PrintWriter pw)
SolverprintSolution in class AbstractInfiniteSolver<S extends State,A extends Action>PrintWriter