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.
|
getProblemdescription, getOptimalPolicy, getOptimalValueFunction, getValueFunction, isSolved, printSolution, printSolution, setPrintProcessTime, setPrintValueFunction, toStringequals, getClass, hashCode, notify, notifyAll, wait, wait, waitequalspublic final Solution<S,A> solve()
Solverpublic java.lang.String bestPolicy(S initial) throws SolverException
initial - SolverExceptionpublic final long getProcessTime()
public java.lang.String label()
Solverlabel in interface JMarkovElementlabel in class Solver<S extends State,A extends Action>Solver.toString()