Base class for all solver classes.TODO: description of the Solver class TODO: description of its functionality.
More...
#include <Solver.h>
Inherited by blaze::CG, blaze::CPG, blaze::GaussianElimination, blaze::Lemke, and blaze::PGS.
Base class for all solver classes.
TODO: description of the Solver class TODO: description of its functionality.
size_t blaze::Solver::getLastIterations |
( |
| ) |
const |
|
inline |
Returns the number of iterations spent in the last solution process.
- Returns
- The number of iterations spent in the last solution process.
real blaze::Solver::getLastPrecision |
( |
| ) |
const |
|
inline |
Returns the precision of the solution after the solution process.
- Returns
- The precision of the solution after the solution process.
The solver is not enforced to compute the precision after the solution. Instead it can just report infinity as the last precision.
size_t blaze::Solver::getMaxIterations |
( |
| ) |
const |
|
inline |
Returns the maximum number of iterations the solver may spend solving the problem.
- Returns
- The maximum number of iterations spent in the solver.
real blaze::Solver::getThreshold |
( |
| ) |
const |
|
inline |
Returns the threshold that classifies a solution as good enough.
- Returns
- The threshold for the solution quality.
void blaze::Solver::setMaxIterations |
( |
size_t |
maxIterations | ) |
|
|
inline |
Sets the maximum number of iterations the solver may spend solving the problem.
- Parameters
-
maxIterations | The maximum number of iterations spent in the solver. |
void blaze::Solver::setThreshold |
( |
real |
threshold | ) |
|
|
inline |
Sets the threshold which classifies a solution as good enough.
- Parameters
-
threshold | The threshold for the solution quality. |
size_t blaze::Solver::maxIterations_ |
|
protected |
The maximum number of iterations.
This is the maximum number of iterations the solver will spend for solving the given problem.
The documentation for this class was generated from the following file: