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, solve
getProblem, printSolution
description, getOptimalPolicy, getOptimalValueFunction, getValueFunction, isSolved, printSolution, setPrintProcessTime, setPrintValueFunction, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
equals
public 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()
Solver
label
in interface JMarkovElement
label
in class Solver<S extends State,A extends Action>
Solver.label()
public void solveLP() throws SolverException
LPSolver
SolverException
public Solution<S,A> buildSolution() throws SolverException
LPSolver
SolverException
MPSQsOptDiscountedSolver.buildSolution()