S - States class.A - Action class.public abstract class MpsLpAverageSolver<S extends State,A extends Action> extends AbstractAverageSolver<S,A> implements MpsLpSolver<S,A>
| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getBuildTime()
Returns the time taken to build and write the MPS file.
|
long |
getIterations() |
long |
getLpSolveTime()
Return the time taken to solve the LP model.
|
java.io.File |
getMpsFile()
Returns the MPS file.
|
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.
|
getProblem, printSolutiondescription, getOptimalPolicy, getOptimalValueFunction, getValueFunction, isSolved, label, printSolution, setPrintProcessTime, setPrintValueFunction, toStringequals, getClass, hashCode, notify, notifyAll, wait, wait, waitbuildSolution, solveLPequalspublic 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 final java.lang.String getMpsFileName()
MpsLpSolvergetMpsFileName 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
Solverpublic final java.io.File getWorkingDir()
MpsLpSolvergetWorkingDir in interface MpsLpSolver<S extends State,A extends Action>MpsLpSolver.getWorkingDir()public final java.io.File getMpsFile()
MpsLpSolvergetMpsFile in interface MpsLpSolver<S extends State,A extends Action>public long getBuildTime()
LPSolverpublic long getLpSolveTime()
LPSolverpublic long getSolBuildTime()
LPSolver