CppAD: A C++ Algorithmic Differentiation Package  20171217
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
solve_result.hpp
Go to the documentation of this file.
1 // $Id: solve_result.hpp 3804 2016-03-20 15:08:46Z bradbell $
2 # ifndef CPPAD_IPOPT_SOLVE_RESULT_HPP
3 # define CPPAD_IPOPT_SOLVE_RESULT_HPP
4 /* --------------------------------------------------------------------------
5 CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-16 Bradley M. Bell
6 
7 CppAD is distributed under multiple licenses. This distribution is under
8 the terms of the
9  Eclipse Public License Version 1.0.
10 
11 A copy of this license is included in the COPYING file of this distribution.
12 Please visit http://www.coin-or.org/CppAD/ for information on other licenses.
13 -------------------------------------------------------------------------- */
14 
15 namespace CppAD { // BEGIN_CPPAD_NAMESPACE
16 namespace ipopt {
17 /*!
18 \file solve_result.hpp
19 Class that contains information about solve problem result
20 */
21 
22 /*!
23 Class that contains information about solve problem result
24 
25 \tparam Dvector
26 a simple vector with elements of type double
27 */
28 template <class Dvector>
30 {
31 public:
32  /// possible values for the result status
33  enum status_type {
49  };
50 
51  /// possible values for solution status
53  /// the approximation solution
54  Dvector x;
55  /// Lagrange multipliers corresponding to lower bounds on x
56  Dvector zl;
57  /// Lagrange multipliers corresponding to upper bounds on x
58  Dvector zu;
59  /// value of g(x)
60  Dvector g;
61  /// Lagrange multipliers correspondiing constraints on g(x)
62  Dvector lambda;
63  /// value of f(x)
64  double obj_value;
65  /// constructor initializes solution status as not yet defined
67  { status = not_defined; }
68 };
69 
70 } // end namespace ipopt
71 } // END_CPPAD_NAMESPACE
72 
73 # endif
Dvector lambda
Lagrange multipliers correspondiing constraints on g(x)
Dvector x
the approximation solution
Class that contains information about solve problem result.
status_type status
possible values for solution status
Dvector zl
Lagrange multipliers corresponding to lower bounds on x.
Dvector g
value of g(x)
double obj_value
value of f(x)
Dvector zu
Lagrange multipliers corresponding to upper bounds on x.
solve_result(void)
constructor initializes solution status as not yet defined
status_type
possible values for the result status