|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjmdp.solvers.Solver<S,A>
jmdp.solvers.AbstractInfiniteSolver<S,A>
jmdp.solvers.AbstractTotalSolver<S,A>
jmdp.solvers.StochasticShortestPathSolver<S,A>
public class StochasticShortestPathSolver<S extends StateC,A extends Action>
This solver gives a solution for the minimization of the total cost criterion for an infinite horizon MDP.
Field Summary |
---|
Fields inherited from class jmdp.solvers.Solver |
---|
policy, printProcessTime, printValueFunction, problem, solved, valueFunction |
Constructor Summary | |
---|---|
StochasticShortestPathSolver(StochasticShortestPath<S,A> problem)
The constructor method exclusively receives a problem of the type StochasticShortestPath because this solver is only designed to work on infinite horizon problems without discount factor. |
Method Summary | |
---|---|
protected double |
bestAction(S i)
Sets the best action to take in state i, in the static variable bestAction. |
double |
future(S i,
A a)
This method calculates the expected value of valueFunction for the current state and a specified action. |
int |
getIterations()
|
StochasticShortestPath<S,A> |
getProblem()
Returns the problem associated with this solver. |
long |
getProcessTime()
|
Solution<S,A> |
solve()
This is the method which activated the solver, a well-specified problem must be created, then StochasticShortestPathSolver can solve the problem |
java.lang.String |
toString()
The sub classes must return the Solver name. |
Methods inherited from class jmdp.solvers.AbstractInfiniteSolver |
---|
getDiscreteProblem, printSolution |
Methods inherited from class jmdp.solvers.Solver |
---|
getOptimalPolicy, getOptimalValueFunction, getValueFunction, isSolved, printSolution, setPrintProcessTime, setPrintValueFunction |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public StochasticShortestPathSolver(StochasticShortestPath<S,A> problem)
problem
- the structure of the problem of type StochasticShortestPathMethod Detail |
---|
public StochasticShortestPath<S,A> getProblem()
AbstractInfiniteSolver
getProblem
in class AbstractInfiniteSolver<S extends StateC,A extends Action>
Solver.getProblem()
public final double future(S i, A a) throws StructureException
StructureException
public Solution<S,A> solve()
solve
in class Solver<S extends StateC,A extends Action>
protected double bestAction(S i)
i
- state for which the best action is being determined
public java.lang.String toString()
Solver
toString
in class Solver<S extends StateC,A extends Action>
Object.toString()
public final long getProcessTime()
getProcessTime
in class Solver<S extends StateC,A extends Action>
public final int getIterations()
getIterations
in class AbstractInfiniteSolver<S extends StateC,A extends Action>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |