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, printSolution
description, getOptimalPolicy, getOptimalValueFunction, getValueFunction, isSolved, label, printSolution, setPrintProcessTime, setPrintValueFunction, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
buildSolution, solveLP
equals
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 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
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>
public long getBuildTime()
LPSolver
public long getLpSolveTime()
LPSolver
public long getSolBuildTime()
LPSolver