|
bool 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] | n | is the dimension of the argument space for f(x); i.e., must be equal n_ . |
[in] | x | is a vector of size n containing the point at which to evaluate the function f(x). |
[in] | new_x | is true if the previous call to any one of the Evaluation Methods used the same value for x . |
[out] | obj_value | is 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 400 of file cppad_ipopt_nlp.cpp.
|