S
- States class.A
- Actions class.public class FiniteSolver<S extends State,A extends Action> extends AbstractFiniteSolver<S,A>
Constructor and Description |
---|
FiniteSolver(FiniteMDP<S,A> problem)
Initialized the solver with the given getProblem().
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
bestPolicy(S initial)
Prints out the policy
|
long |
getProcessTime() |
java.lang.String |
label()
The sub classes must return the Solver name.
|
Solution<S,A> |
solve()
Called to solve the problem.
|
getProblem
description, getOptimalPolicy, getOptimalValueFunction, getValueFunction, isSolved, printSolution, printSolution, setPrintProcessTime, setPrintValueFunction, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
equals
public final Solution<S,A> solve()
Solver
public java.lang.String bestPolicy(S initial) throws SolverException
initial
- SolverException
public final long getProcessTime()
public java.lang.String label()
Solver
label
in interface JMarkovElement
label
in class Solver<S extends State,A extends Action>
Solver.toString()