|
CppAD: A C++ Algorithmic Differentiation Package
20130102
|
Abstract base class user derives from to define the funcitons in the problem. More...
Public Member Functions | |
| virtual | ~cppad_ipopt_fg_info (void) |
| destructor virtual so user derived class destructor gets called | |
| virtual size_t | number_functions (void) |
| number_functions; i.e. K (simple representation uses 1) | |
| virtual ADVector | eval_r (size_t k, const ADVector &u)=0 |
| function that evaluates the users representation for f(x) and and g(x) is pure virtual so user must define it in derived class | |
| virtual bool | retape (size_t k) |
| should the function r_k (u) be retaped when ever the arguemnt u changes (default is true which is safe but slow) | |
| virtual size_t | domain_size (size_t k) |
| domain_size q[k] for r_k (u) (simple representation uses n) | |
| virtual size_t | range_size (size_t k) |
| range_size p[k] for r_k (u) (simple representation uses m+1) | |
| virtual size_t | number_terms (size_t k) |
| number_terms that use r_k (u) (simple represenation uses 1) | |
| virtual void | index (size_t k, size_t ell, SizeVector &I, SizeVector &J) |
| return the index vectors I_{k,ell} and J_{k,ell} (simple representation uses I[i] = i and J[j] = j) | |
Private Member Functions | |
| void | set_n (size_t n) |
| the cppad_ipopt_nlp constructor uses this method to set n_ | |
| void | set_m (size_t m) |
| the cppad_ipopt_nlp constructor uses this method to set m_ | |
Private Attributes | |
| size_t | n_ |
| domain space dimension for the functions f(x), g(x) | |
| size_t | m_ |
| range space dimension for the function g(x) | |
Friends | |
| class | cppad_ipopt_nlp |
| allow cppad_ipopt_nlp class complete access to this class | |
Abstract base class user derives from to define the funcitons in the problem.
Definition at line 638 of file cppad_ipopt_nlp.hpp.