CppAD: A C++ Algorithmic Differentiation Package
20130102
|
void cppad_ipopt::fun_record | ( | cppad_ipopt_fg_info * | fg_info, |
size_t | k, | ||
const SizeVector & | p, | ||
const SizeVector & | q, | ||
size_t | n, | ||
const NumVector & | x, | ||
const SizeVector & | J, | ||
CppAD::vector< CppAD::ADFun< Ipopt::Number > > & | r_fun | ||
) |
Records operation sequence for at
.
NumVector | is the type of the argumen x . It can either be Ipopt::Number* or CppAD::vector<Ipopt::Number> ; i.e., NumberVector . |
fg_info | Given a value ![]() fg_info returns the value ![]() fg_info->eval_r(k, u); fg_info . |
k | is a value less that K specifying the index value for k in the evaluation eval_r . |
p | p[k] is dimension of the range space for ![]() ![]() |
q | q[k] is dimension of the domain space for ![]() ![]() |
n | is the lenght of the vector x . |
x | the length of x is equal to n and the point
![]() |
J | is a vector with lenght q[k] that projects from ![]() ![]() ![]() 0 <= J[j] < n for j = 0 , ... , q[k]-1 . |
r_fun | is the vector of AD function objects which has size size greater than k . Only the function object r_fun[k] is referenced. The input value of this function object does not matter. On output it is a recording of the function ![]() ![]() x and J . |
Definition at line 81 of file fun_record.hpp.
Referenced by cppad_ipopt::cppad_ipopt_nlp::cppad_ipopt_nlp(), cppad_ipopt::cppad_ipopt_nlp::eval_f(), cppad_ipopt::cppad_ipopt_nlp::eval_g(), cppad_ipopt::cppad_ipopt_nlp::eval_grad_f(), cppad_ipopt::cppad_ipopt_nlp::eval_h(), and cppad_ipopt::cppad_ipopt_nlp::eval_jac_g().