CppAD: A C++ Algorithmic Differentiation Package  20130102
bool cppad_ipopt::cppad_ipopt_nlp::eval_f ( Index  n,
const Number x,
bool  new_x,
Number obj_value 
) [virtual]

Evaluate the objective fucntion f(x).

Parameters:
[in]nis the dimension of the argument space for f(x); i.e., must be equal n_.
[in]xis a vector of size n containing the point at which to evaluate the function f(x).
[in]new_xis false if the previous call to any one of the Evaluation Methods used the same value for x.
[out]obj_valueis the value of the objective f(x) at this value of x.
Returns:
The return value is always true; see Evaluation Methods.
Efficiency
This routine could be more efficient (for certain when when L[k] > 1 and retape[k] is true) if the users also provided a version of the function fg_info->eval_r(k, u) where u was of type NumberVector.

Definition at line 412 of file cppad_ipopt_nlp.cpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines