|
only constructor for cppad_ipopot_nlp
Constructor for the Nonlinear Programming Problem.
- Parameters:
-
n | dimension of the domain space for f(x) and g(x). |
m | dimension of the range space for g(x) |
x_i | initial value of x during the optimization procedure (size n). |
x_l | lower limit for x (size n). |
x_u | upper limit for x (size n). |
g_l | lower limit for g(x) (size m). |
g_u | upper limit for g(x) (size m). |
fg_info | pointer to base class version of derived class object used to get information about the user's representation for f(x) and g(x). (The object pointed to must not be deleted before this cppad_ipopt_nlp object). |
solution | pointer to object where final results are stored. (The object pointed to must not be deleted before this cppad_ipopt_nlp object). |
- Constants
- The following values are set by the constructor and are
const or effectively const ; i.e., they are set by the constructor and should not be changed:
n_, m_, x_i_, x_l_, x_u_, g_l_, g_u_, K_, L_, p_, q_, retape_,
pattern_jac_r_, pattern_hes_r_, index_jac_g_, index_hes_fg_,
nnz_jac_g_, iRow_jac_g_, jCol_jac_g_,
nnz_h_lag_, iRow_h_lag_, jCol_h_lag_,
In addition, the function calls fg_info->set_n(n) and fg_info->set_m(m) are used to set the values of n and m in fg_info .
- Variables
- The following arrays have fixed size which is set during this constructor:
tape_ok_ has size K_ . It is initialized as true for indices k such that retape[k] is false.
r_fun_ has size K_ . It is initilaize with the default ADFun constructor. Then, for indices k such that retape[k] is false, the operation sequence corresponding to is stored in r_fun_[k] .
I_ has size equal to the maximum of p[k] w.r.t k .
J_ has size equal to the maximum of q[k] w.r.t k .
- NDEBUG
- If the preprocessor symbol
NEBUG is not defined, certain of the assumptions about the function calls of the form
fg_info->index(k, ell, I, J)
are checked to make sure they hold.
Definition at line 102 of file cppad_ipopt_nlp.cpp.
|