|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjmarkov.jmdp.solvers.Solver<S,A>
jmarkov.jmdp.solvers.AbstractInfiniteSolver<S,A>
jmarkov.jmdp.solvers.AbstractAverageSolver<S,A>
jmarkov.jmdp.solvers.MpsLpAverageSolver<S,A>
S
- States class.A
- Action class.public abstract class MpsLpAverageSolver<S extends State,A extends Action>
This class builds the Dual Linear Program for an average infinite horizon MDP in a MPS file.
Field Summary |
---|
Fields inherited from class jmarkov.jmdp.solvers.Solver |
---|
policy, printProcessTime, printValueFunction, problem, solved, valueFunction |
Constructor Summary | |
---|---|
MpsLpAverageSolver(DTMDP<S,A> problem)
This cosntructor creates a solver for this problem. |
|
MpsLpAverageSolver(DTMDP<S,A> problem,
java.lang.String workingDir,
java.lang.String fileName)
The constructor method receives a problem of the type infinite DTMDP, the working directory where the MPS file will be stored, and the name that the user wants for the MPS File. |
Method Summary | |
---|---|
long |
getBuildTime()
Returns the time taken to build and write the MPS file. |
protected MpsLpDiscountedSolver<S,A> |
getDiscSolver()
|
long |
getIterations()
|
long |
getLpSolveTime()
Return the time taken to solve the LP model. |
java.io.File |
getMpsFile()
Returns the MPS file name. |
java.lang.String |
getMpsFileName()
Returns the MPS file name. |
long |
getProcessTime()
|
long |
getSolBuildTime()
Returns the time needed to build the Solution after the LP was solved. |
java.io.File |
getWorkingDir()
Returns the working directory (where the MPS file is located). |
Solution<S,A> |
solve()
Called to solve the problem. |
Methods inherited from class jmarkov.jmdp.solvers.AbstractInfiniteSolver |
---|
getDiscreteProblem, getProblem, printSolution |
Methods inherited from class jmarkov.jmdp.solvers.Solver |
---|
description, getOptimalPolicy, getOptimalValueFunction, getValueFunction, isSolved, label, printSolution, setPrintProcessTime, setPrintValueFunction, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface jmarkov.jmdp.solvers.LPSolver |
---|
buildSolution, solveLP |
Methods inherited from interface jmarkov.basic.JMarkovElement |
---|
equals |
Constructor Detail |
---|
public MpsLpAverageSolver(DTMDP<S,A> problem, java.lang.String workingDir, java.lang.String fileName)
problem
- The problem to be solved.workingDir
- Where the file will be created.fileName
- Label for the MPS File.public MpsLpAverageSolver(DTMDP<S,A> problem)
problem
- The structure of the problem of type infinite
DTMDP.Method Detail |
---|
public final java.lang.String getMpsFileName()
MpsLpSolver
getMpsFileName
in interface MpsLpSolver<S extends State,A extends Action>
public final long getIterations()
getIterations
in class AbstractInfiniteSolver<S extends State,A extends Action>
public final Solution<S,A> solve() throws SolverException
Solver
solve
in class Solver<S extends State,A extends Action>
SolverException
- This exception is thrown if the solver cannot find a solution
for some reason.public final java.io.File getWorkingDir()
MpsLpSolver
getWorkingDir
in interface MpsLpSolver<S extends State,A extends Action>
MpsLpSolver.getWorkingDir()
public final java.io.File getMpsFile()
MpsLpSolver
getMpsFile
in interface MpsLpSolver<S extends State,A extends Action>
protected MpsLpDiscountedSolver<S,A> getDiscSolver()
public long getBuildTime()
LPSolver
getBuildTime
in interface LPSolver<S extends State,A extends Action>
public long getLpSolveTime()
LPSolver
getLpSolveTime
in interface LPSolver<S extends State,A extends Action>
public long getSolBuildTime()
LPSolver
getSolBuildTime
in interface LPSolver<S extends State,A extends Action>
public final long getProcessTime()
getProcessTime
in class Solver<S extends State,A extends Action>
System.currentTimeMillis()
to get the current
time.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |