S - States class.A - Actions class.public class LPBCLDiscountedSolver<S extends State,A extends Action> extends AbstractDiscountedSolver<S,A> implements LPSolver
| Constructor and Description |
|---|
LPBCLDiscountedSolver(DTMDP<S,A> problem,
double interestRate)
The constructor method receives a problem of the type infinite
DTMDP and an interest rate that is modified for being used as
discount factor.
|
| 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 |
description()
This method return a complete verbal describtion of this element.
|
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.
|
long |
getProcessTime() |
long |
getSolBuildTime()
Returns the time needed to build the Solution after the LP was
solved.
|
java.lang.String |
label()
The sub classes must return the Solver name.
|
Solution<S,A> |
solve()
Called to solve the problem.
|
void |
solveLP()
The implementator classes should override this class to solve
the problem using the mpsFile that has been created.
|
getInterestRate, setInterestRategetProblem, printSolutiongetOptimalPolicy, getOptimalValueFunction, getValueFunction, isSolved, printSolution, setPrintProcessTime, setPrintValueFunction, toStringequals, getClass, hashCode, notify, notifyAll, wait, wait, waitequalspublic LPBCLDiscountedSolver(DTMDP<S,A> problem, double interestRate)
problem - the structure of the problem of type infinite
DTMDP.interestRate - A rate which is paid for the use of a
resource.public long getIterations()
getIterations in class AbstractInfiniteSolver<S extends State,A extends Action>public Solution<S,A> solve() throws SolverException
Solverpublic java.lang.String label()
Solverlabel in interface JMarkovElementlabel in class Solver<S extends State,A extends Action>Solver.toString()public java.lang.String description()
JMarkovElementdescription in interface JMarkovElementdescription in class Solver<S extends State,A extends Action>JMarkovElement.label()public long getProcessTime()
public long getBuildTime()
LPSolvergetBuildTime in interface LPSolverpublic long getLpSolveTime()
LPSolvergetLpSolveTime in interface LPSolverpublic long getSolBuildTime()
getSolBuildTime in interface LPSolverpublic void solveLP()
throws SolverException
LPSolversolveLP in interface LPSolverSolverExceptionLPSolver.solveLP()public Solution<S,A> buildSolution() throws SolverException
LPSolverbuildSolution in interface LPSolverSolverExceptionLPSolver.buildSolution()