CppAD: A C++ Algorithmic Differentiation Package
20130918
|
virtual bool CppAD::ipopt::solve_callback< Dvector, ADvector, FG_eval >::eval_grad_f | ( | Index | n, |
const Number * | x, | ||
bool | new_x, | ||
Number * | grad_f | ||
) | [inline, virtual] |
Evaluate the gradient of f(x).
[in] | n | is the dimension of the argument space for f(x); i.e., must be equal nx_. |
[in] | x | has a vector of size nx_ containing the point at which to evaluate the gradient of f(x). |
[in] | new_x | is false if the previous call to any one of the Evaluation Methods used the same value for x. |
[out] | grad_f | is a vector of size nx_. The input value of its elements does not matter. The output value of its elements is the gradient of f(x) at this value of. |
Definition at line 586 of file solve_callback.hpp.