CppAD: A C++ Algorithmic Differentiation Package  20171217
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
template<class Dvector, class ADvector, class FG_eval>
virtual void CppAD::ipopt::solve_callback< Dvector, ADvector, FG_eval >::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 
)
inlinevirtual

Pass solution information from Ipopt to users solution structure.

Parameters
[in]statusis value that the Ipopt solution status which gets mapped to a correponding value for
solution_.status
[in]nis the dimension of the domain space for f(x) and g(x); i.e., it must be equal to nx_.
[in]xis a vector with size nx_ specifing the final solution. This is the output value for
solution_.x
[in]z_Lis a vector with size nx_ specifing the Lagragian multipliers for the constraint $ x^l \leq x $. This is the output value for
solution_.zl
[in]z_Uis a vector with size nx_ specifing the Lagragian multipliers for the constraint $ x \leq x^u $. This is the output value for
solution_.zu
[in]mis the dimension of the range space for g(x). i.e., it must be equal to ng_.
[in]gis a vector with size ng_ containing the value of the constraint function g(x) at the final solution x. This is the output value for
solution_.g
[in]lambdais a vector with size ng_ specifing the Lagragian multipliers for the constraints $ g^l \leq g(x) \leq g^u $. This is the output value for
solution_.lambda
[in]obj_valueis the value of the objective function f(x) at the final solution x. This is the output value for
solution_.obj_value
[in]ip_datais unspecified (by Ipopt) and hence not used.
[in]ip_cqis unspecified (by Ipopt) and hence not used.
solution_[out]
this is a reference to the solution argument in the constructor for solve_callback. The results are stored here (see documentation above).

Definition at line 1091 of file solve_callback.hpp.