S
- States class.A
- Actions class.public class PolicyIterationSolverAvg<S extends State,A extends Action> extends AbstractAverageSolver<S,A>
Constructor and Description |
---|
PolicyIterationSolverAvg(DTMDP<S,A> problem)
The constructor method exclusively receives a problem of the
type InfiniteMDP because this solver is only designed to work
on infinite horizon problems.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
description()
This method return a complete verbal describtion of this element.
|
ValueFunction<S> |
getBias() |
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 |
setPrintBias(boolean val) |
void |
setPrintGain(boolean val) |
Solution<S,A> |
solve()
Called to solve the problem.
|
getProblem
getOptimalPolicy, getOptimalValueFunction, getValueFunction, isSolved, setPrintProcessTime, setPrintValueFunction, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
equals
public PolicyIterationSolverAvg(DTMDP<S,A> problem)
problem
- the structure of the problem of type InfiniteMDPpublic Solution<S,A> solve() throws SolverException
Solver
public java.lang.String description()
JMarkovElement
description
in interface JMarkovElement
description
in class Solver<S extends State,A extends Action>
JMarkovElement.label()
public java.lang.String label()
Solver
label
in interface JMarkovElement
label
in class Solver<S extends State,A extends Action>
Solver.toString()
public final long getProcessTime()
public final long getIterations()
getIterations
in class AbstractInfiniteSolver<S extends State,A extends Action>
public final double getGain()
public final ValueFunction<S> getBias()
public void setPrintBias(boolean val)
public void setPrintGain(boolean val)
public void printSolution(java.io.PrintWriter pw)
printSolution
in class AbstractInfiniteSolver<S extends State,A extends Action>
pw
- PrintWriter