The CeresIterationCallback class tries to enforce a time limit on the optimization. It does not guarantee to stay within the time budget as it assumes the next iteration takes as long as the previous iteration.
More...
#include <CeresIterationCallback.hpp>
|
| CeresIterationCallback (double timeLimit, int iterationMinimum) |
| The constructor. More...
|
|
| ~CeresIterationCallback () |
| Trivial Destructor. More...
|
|
::ceres::CallbackReturnType | operator() (const ::ceres::IterationSummary &summary) |
| This method is called after every iteration in ceres. More...
|
|
void | setTimeLimit (double timeLimit) |
| setTimeLimit changes time limit of optimization. If you want to disable the time limit, either set it to a large value, delete the callback in the ceres options or set the minimum iterations to the maximum iteration. More...
|
|
void | setMinimumIterations (int iterationMinimum) |
| setMinimumIterations changes the minimum iterations the optimization goes through disregarding the time limit More...
|
|
The CeresIterationCallback class tries to enforce a time limit on the optimization. It does not guarantee to stay within the time budget as it assumes the next iteration takes as long as the previous iteration.
okvis::ceres::CeresIterationCallback::CeresIterationCallback |
( |
double |
timeLimit, |
|
|
int |
iterationMinimum |
|
) |
| |
|
inline |
The constructor.
- Parameters
-
[in] | timeLimit | Time budget for the optimization. |
[in] | iterationMinimum | Minimum iterations the optimization should perform disregarding the time. |
okvis::ceres::CeresIterationCallback::~CeresIterationCallback |
( |
| ) |
|
|
inline |
::ceres::CallbackReturnType okvis::ceres::CeresIterationCallback::operator() |
( |
const ::ceres::IterationSummary & |
summary | ) |
|
|
inline |
This method is called after every iteration in ceres.
- Parameters
-
[in] | summary | The iteration summary. |
void okvis::ceres::CeresIterationCallback::setMinimumIterations |
( |
int |
iterationMinimum | ) |
|
|
inline |
setMinimumIterations changes the minimum iterations the optimization goes through disregarding the time limit
- Parameters
-
void okvis::ceres::CeresIterationCallback::setTimeLimit |
( |
double |
timeLimit | ) |
|
|
inline |
setTimeLimit changes time limit of optimization. If you want to disable the time limit, either set it to a large value, delete the callback in the ceres options or set the minimum iterations to the maximum iteration.
- Parameters
-
[in] | timeLimit | desired time limit in seconds |
int okvis::ceres::CeresIterationCallback::iterationMinimum_ |
|
private |
The set maximum no. iterations.
double okvis::ceres::CeresIterationCallback::timeLimit_ |
|
private |
The documentation for this class was generated from the following file: