S - Stete classA - Action classpublic class MPSQsOptAverageSolver<S extends State,A extends Action> extends MpsLpAverageSolver<S,A>
| Constructor and Description |
|---|
MPSQsOptAverageSolver(CTMDP<S,A> problem) |
MPSQsOptAverageSolver(CTMDP<S,A> problem,
java.lang.String workingDir,
java.lang.String fileName)
Creates a solver for average cost problems.
|
MPSQsOptAverageSolver(DTMDP<S,A> problem) |
MPSQsOptAverageSolver(DTMDP<S,A> problem,
java.lang.String workingDir,
java.lang.String fileName)
Creates a solver for average cost problems.
|
| Modifier and Type | Method and Description |
|---|---|
Solution<S,A> |
buildSolution()
The implementator classes should override this class to build
the solution after the model has been solved.
|
java.lang.String |
label()
The sub classes must return the Solver name.
|
void |
solveLP()
The implementator classes should override this class to solve
the problem using the mpsFile that has been created.
|
getBuildTime, getIterations, getLpSolveTime, getMpsFile, getMpsFileName, getProcessTime, getSolBuildTime, getWorkingDir, solvegetProblem, printSolutiondescription, getOptimalPolicy, getOptimalValueFunction, getValueFunction, isSolved, printSolution, setPrintProcessTime, setPrintValueFunction, toStringequals, getClass, hashCode, notify, notifyAll, wait, wait, waitequalspublic MPSQsOptAverageSolver(DTMDP<S,A> problem, java.lang.String workingDir, java.lang.String fileName)
problem - The problem to solve.workingDir - working directory where files will be savedfileName - MDP file name.public java.lang.String label()
Solverlabel in interface JMarkovElementlabel in class Solver<S extends State,A extends Action>Solver.label()public void solveLP()
throws SolverException
LPSolverSolverExceptionpublic Solution<S,A> buildSolution() throws SolverException
LPSolverSolverExceptionMPSQsOptDiscountedSolver.buildSolution()