Ipopt  3.11.9
SensApplication.hpp
Go to the documentation of this file.
1 // Copyright 2009, 2011 Hans Pirnay
2 // All Rights Reserved.
3 // This code is published under the Eclipse Public License.
4 //
5 // Date : 2009-05-06
6 
7 #ifndef __SENSAPPLICATION_HPP__
8 #define __SENSAPPLICATION_HPP__
9 
10 #include "IpReferenced.hpp"
11 #include "SensUtils.hpp"
12 #include "SensUtils.hpp"
13 #include "IpRegOptions.hpp"
14 
15 #include "IpIpoptApplication.hpp"
16 #include "IpPDSystemSolver.hpp"
17 namespace Ipopt
18 {
20  DECLARE_STD_EXCEPTION(SENS_SUFFIX_ERROR);
21 
23  {
24  public:
25  // constructor
27  SmartPtr<OptionsList> options,
28  SmartPtr<RegisteredOptions> reg_options);
29 
31 
32  static void RegisterOptions(SmartPtr<RegisteredOptions> roptions);
33 
35 
36  void Initialize();
37 
39  ApplicationReturnStatus ipopt_retval);
40 
42  {
43  return jnlst_;
44  }
45 
46 
48  {
49  return options_;
50  }
51 
54  {
55  return ConstPtr(options_);
56  }
57 
58 
59  private:
60 
61  // standard constructor just so it can't be used
62  // SensApplication();
63 
64  // Pointers that are immediately passed from Ipopt and initialized by the constructor
73 
75  bool run_sens_;
78  };
79 }
80 
81 #endif
Ipopt::SensApplication::Run
SensAlgorithmExitStatus Run()
Ipopt::SensApplication::Jnlst
SmartPtr< Journalist > Jnlst()
Definition: SensApplication.hpp:41
SensUtils.hpp
Ipopt::SensApplication::compute_red_hessian_
bool compute_red_hessian_
Definition: SensApplication.hpp:76
IpRegOptions.hpp
Ipopt::SensApplication::run_sens_
bool run_sens_
storing options values
Definition: SensApplication.hpp:75
Ipopt
Definition: matlabjournal.hpp:14
Ipopt::SensApplication::SetIpoptAlgorithmObjects
void SetIpoptAlgorithmObjects(SmartPtr< IpoptApplication > app_ipopt, ApplicationReturnStatus ipopt_retval)
Ipopt::SensApplication
Definition: SensApplication.hpp:22
Ipopt::SensApplication::options_
SmartPtr< OptionsList > options_
Definition: SensApplication.hpp:66
Ipopt::SensApplication::ip_cq_
SmartPtr< IpoptCalculatedQuantities > ip_cq_
Definition: SensApplication.hpp:68
ApplicationReturnStatus
ApplicationReturnStatus
Return codes for the Optimize call for an application.
Definition: IpReturnCodes_inc.h:16
Ipopt::Index
int Index
Type of all indices of vectors, matrices etc.
Definition: IpTypes.hpp:19
Ipopt::SensApplication::ip_data_
SmartPtr< IpoptData > ip_data_
Definition: SensApplication.hpp:67
Ipopt::SmartPtr
Template class for Smart Pointers.
Definition: IpSmartPtr.hpp:182
Ipopt::SensApplication::reg_options_
SmartPtr< RegisteredOptions > reg_options_
Definition: SensApplication.hpp:71
Ipopt::SensApplication::ip_nlp_
SmartPtr< IpoptNLP > ip_nlp_
Definition: SensApplication.hpp:70
IpReferenced.hpp
IpPDSystemSolver.hpp
Ipopt::SensApplication::n_sens_steps_
Index n_sens_steps_
Definition: SensApplication.hpp:77
Ipopt::SensApplication::RegisterOptions
static void RegisterOptions(SmartPtr< RegisteredOptions > roptions)
Ipopt::SensApplication::ipopt_retval_
ApplicationReturnStatus ipopt_retval_
Definition: SensApplication.hpp:72
Ipopt::SensApplication::Options
SmartPtr< const OptionsList > Options() const
Get the options list for setting options (const version)
Definition: SensApplication.hpp:53
Ipopt::SensApplication::pd_solver_
SmartPtr< PDSystemSolver > pd_solver_
Definition: SensApplication.hpp:69
Ipopt::SensApplication::SensApplication
SensApplication(SmartPtr< Journalist > jnlst, SmartPtr< OptionsList > options, SmartPtr< RegisteredOptions > reg_options)
Ipopt::ConstPtr
SmartPtr< const U > ConstPtr(const SmartPtr< U > &smart_ptr)
Definition: IpSmartPtr.hpp:582
Ipopt::SensApplication::Options
SmartPtr< OptionsList > Options()
Definition: SensApplication.hpp:47
Ipopt::SensApplication::~SensApplication
~SensApplication()
Ipopt::SensAlgorithmExitStatus
SensAlgorithmExitStatus
This header file provides some definitions used throughout the program.
Definition: SensUtils.hpp:22
Ipopt::SensApplication::Initialize
void Initialize()
IpIpoptApplication.hpp
Ipopt::ReferencedObject
ReferencedObject class.
Definition: IpReferenced.hpp:174
Ipopt::SensApplication::jnlst_
SmartPtr< Journalist > jnlst_
Definition: SensApplication.hpp:65
Ipopt::DECLARE_STD_EXCEPTION
DECLARE_STD_EXCEPTION(SUFFIX_EMPTY)