Note that Problem::Evaluate cannot be called from an IterationCallback

Change-Id: Ieabdc2d40715e6b547ab22156ba32e9c8444b7ed
This commit is contained in:
Sameer Agarwal
2016-08-31 06:58:41 -07:00
parent 44044e25b1
commit 358ae741c8
2 changed files with 36 additions and 16 deletions
+4
View File
@@ -464,6 +464,10 @@ class CERES_EXPORT Problem {
// parameter block has a local parameterization, then it contributes
// "LocalSize" entries to the gradient vector (and the number of
// columns in the jacobian).
//
// Note 3: This function cannot be called while the problem is being
// solved, for example it cannot be called from an IterationCallback
// at the end of an iteration during a solve.
bool Evaluate(const EvaluateOptions& options,
double* cost,
std::vector<double>* residuals,