jmdp.solvers
Class AbstractInfiniteSolver<S extends State,A extends Action>

java.lang.Object
  extended by jmdp.solvers.Solver<S,A>
      extended by jmdp.solvers.AbstractInfiniteSolver<S,A>
Direct Known Subclasses:
AbstractAverageSolver, AbstractDiscountedSolver, AbstractTotalSolver

public abstract class AbstractInfiniteSolver<S extends State,A extends Action>
extends Solver<S,A>

Structural class to be extended by solvers in order to solve infinite horizon problems

Author:
German Riano. Universidad de los Andes. (C) 2005

Field Summary
 
Fields inherited from class jmdp.solvers.Solver
policy, printProcessTime, printValueFunction, problem, solved, valueFunction
 
Constructor Summary
AbstractInfiniteSolver(CTMDP<S,A> problem)
          Creates a solver for an infinite horizon continuous time problem
AbstractInfiniteSolver(DTMDP<S,A> problem)
          Constructor method for Discrete Time Markov Decision Processes to be solved for discounted cost.
 
Method Summary
protected  DTMDP<S,A> getDiscreteProblem()
           
abstract  int getIterations()
           
 InfiniteMDP<S,A> getProblem()
          Returns the problem associated with this solver.
 void printSolution(java.io.PrintWriter pw)
          Prints the solution on a given print writer.
 
Methods inherited from class jmdp.solvers.Solver
getOptimalPolicy, getOptimalValueFunction, getProcessTime, getValueFunction, isSolved, printSolution, setPrintProcessTime, setPrintValueFunction, solve, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractInfiniteSolver

public AbstractInfiniteSolver(DTMDP<S,A> problem)
Constructor method for Discrete Time Markov Decision Processes to be solved for discounted cost.

Parameters:
problem - Discrete Time Markov Decision Process of type DTMDP

AbstractInfiniteSolver

public AbstractInfiniteSolver(CTMDP<S,A> problem)
Creates a solver for an infinite horizon continuous time problem

Parameters:
problem - continuous time problem
Method Detail

getProblem

public InfiniteMDP<S,A> getProblem()
Returns the problem associated with this solver.

Overrides:
getProblem in class Solver<S extends State,A extends Action>
Returns:
the problem associated with this solver.

getDiscreteProblem

protected DTMDP<S,A> getDiscreteProblem()
Returns:
discrete time problem

getIterations

public abstract int getIterations()
Returns:
Returns the iterations in the last solve..

printSolution

public void printSolution(java.io.PrintWriter pw)
Description copied from class: Solver
Prints the solution on a given print writer.

Overrides:
printSolution in class Solver<S extends State,A extends Action>