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 
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
ApplicationReturnStatus
Return codes for the Optimize call for an application.
ReferencedObject class.
SmartPtr< Journalist > Jnlst()
SmartPtr< IpoptData > ip_data_
SmartPtr< IpoptNLP > ip_nlp_
bool run_sens_
storing options values
SmartPtr< IpoptCalculatedQuantities > ip_cq_
SmartPtr< OptionsList > options_
SensApplication(SmartPtr< Journalist > jnlst, SmartPtr< OptionsList > options, SmartPtr< RegisteredOptions > reg_options)
SmartPtr< RegisteredOptions > reg_options_
SensAlgorithmExitStatus Run()
ApplicationReturnStatus ipopt_retval_
void SetIpoptAlgorithmObjects(SmartPtr< IpoptApplication > app_ipopt, ApplicationReturnStatus ipopt_retval)
SmartPtr< Journalist > jnlst_
SmartPtr< OptionsList > Options()
SmartPtr< const OptionsList > Options() const
Get the options list for setting options (const version)
static void RegisterOptions(SmartPtr< RegisteredOptions > roptions)
SmartPtr< PDSystemSolver > pd_solver_
Template class for Smart Pointers.
Definition: IpSmartPtr.hpp:183
SmartPtr< const U > ConstPtr(const SmartPtr< U > &smart_ptr)
Definition: IpSmartPtr.hpp:582
int Index
Type of all indices of vectors, matrices etc.
Definition: IpTypes.hpp:19
DECLARE_STD_EXCEPTION(SUFFIX_EMPTY)
SensAlgorithmExitStatus
This header file provides some definitions used throughout the program.
Definition: SensUtils.hpp:22