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.
|
getProblem
description, getOptimalPolicy, getOptimalValueFunction, getValueFunction, isSolved, setPrintProcessTime, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
equals
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
- public void setPrintValueFunction(boolean val)
Solver
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
public 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)
Solver
printSolution
in class AbstractInfiniteSolver<S extends State,A extends Action>
PrintWriter