Add an example for EvaluationCallback

Change-Id: Ia488f8b181118c8d07861149c4bd52f7217336ce
This commit is contained in:
Sameer Agarwal
2023-09-27 15:42:16 -07:00
parent 0fc3fd4fce
commit 4588b0fbbf
4 changed files with 266 additions and 3 deletions
+6 -2
View File
@@ -66,8 +66,12 @@ class CERES_EXPORT EvaluationCallback {
// Called before Ceres requests residuals or jacobians for a given setting of
// the parameters. User parameters (the double* values provided to the cost
// functions) are fixed until the next call to PrepareForEvaluation(). If
// new_evaluation_point == true, then this is a new point that is different
// functions) are fixed until the next call to PrepareForEvaluation().
//
// If evaluate_jacobians == true, then the user provided CostFunctions will be
// asked to evaluate one or more of their Jacobians.
//
// If new_evaluation_point == true, then this is a new point that is different
// from the last evaluated point. Otherwise, it is the same point that was
// evaluated previously (either jacobian or residual) and the user can use
// cached results from previous evaluations.