CppAD: A C++ Algorithmic Differentiation Package
20130102
|
void cppad_ipopt::cppad_ipopt_nlp::finalize_solution | ( | Ipopt::SolverReturn | status, |
Index | n, | ||
const Number * | x, | ||
const Number * | z_L, | ||
const Number * | z_U, | ||
Index | m, | ||
const Number * | g, | ||
const Number * | lambda, | ||
Number | obj_value, | ||
const Ipopt::IpoptData * | ip_data, | ||
Ipopt::IpoptCalculatedQuantities * | ip_cq | ||
) | [virtual] |
Pass solution information from Ipopt to users solution structure.
[in] | status | is value that the Ipopt solution status which gets mapped to a correponding value for solution_->status . |
[in] | n | is the dimension of the domain space for f(x) and g(x); i.e., it must be equal to n_ . |
[in] | x | is a vector with size n specifing the final solution. solution_->x is set to be a vector with size n and to have the same element values. |
[in] | z_L | is a vector with size n specifing the Lagragian multipliers for the constraint ![]() solution_->z_l is set to be a vector with size n and to have the same element values. |
[in] | z_U | is a vector with size n specifing the Lagragian multipliers for the constraint ![]() solution_->z_u is set to be a vector with size n and to have the same element values. |
[in] | m | is the dimension of the range space for g(x). i.e., it must be equal to m_ . |
[in] | g | is a vector with size m containing the value of the constraint function g(x) at the final solution for x . solution_->g is set to be a vector with size m and to have the same element values. |
[in] | lambda | is a vector with size m specifing the Lagragian multipliers for the constraints ![]() solution_->lambda is set to be a vector with size m and to have the same element values. |
[in] | obj_value | is the value of the objective function f(x) at the final solution for x . solution_->obj_value is set to have the same value. |
[in] | ip_data | is unspecified (by Ipopt) and hence not used. |
[in] | ip_cq | is unspecified (by Ipopt) and hence not used. |
solution_
, which is equal to the pointer solution
in the constructor for cppad_ipopt_nlp
, is used to set output values (see documentation above). Definition at line 1023 of file cppad_ipopt_nlp.cpp.