S
- States class.A
- Actions class.public class MPSXpressAverage<S extends State,A extends Action> extends MpsLpAverageSolver<S,A>
Constructor and Description |
---|
MPSXpressAverage(DTMDP<S,A> problem)
This is the default constructor for MPSXpressDiscounted class, and
defines the path for the working directory equals to the MPS folder tied
to the project.
|
MPSXpressAverage(DTMDP<S,A> problem,
java.lang.String workingDir,
java.lang.String fileName)
The constructor method exclusively receives a problem of the type
infinite DTMDP and the name that the user wants as path for MPS Files and
solutions from Xpress-Optimizer.
|
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 MPSXpressAverage(DTMDP<S,A> problem, java.lang.String workingDir, java.lang.String fileName)
problem
- the structure of the problem of type infinite DTMDP.workingDir
- The path where will be saved and read the MPS file.fileName
- The MPS file name.public MPSXpressAverage(DTMDP<S,A> problem)
problem
- the structure of the problem of type infinite DTMDP.public java.lang.String label()
Solver
label
in interface JMarkovElement
label
in class Solver<S extends State,A extends Action>
Solver.toString()
public void solveLP() throws SolverException
LPSolver
SolverException
public Solution<S,A> buildSolution() throws SolverException
LPSolver
SolverException
MPSXpressDiscounted.buildSolution()