Ipopt Documentation  
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
IpInexactNormalStepCalc.hpp
Go to the documentation of this file.
1 // Copyright (C) 2008 International Business Machines and others.
2 // All Rights Reserved.
3 // This code is published under the Eclipse Public License.
4 //
5 // Authors: Andreas Waechter IBM 2008-08-31
6 
7 #ifndef __IPINEXACTNORMALSTEPCALC_HPP__
8 #define __IPINEXACTNORMALSTEPCALC_HPP__
9 
10 #include "IpAlgStrategy.hpp"
11 #include "IpInexactCq.hpp"
12 
13 namespace Ipopt
14 {
19 {
20 public:
22 
25  { }
26 
29  { }
31 
32  virtual bool InitializeImpl(
33  const OptionsList& options,
34  const std::string& prefix
35  ) = 0;
36 
44  virtual bool ComputeNormalStep(
45  SmartPtr<Vector>& normal_x,
46  SmartPtr<Vector>& normal_s
47  ) = 0;
48 
49 protected:
52  {
53  InexactData& inexact_data = static_cast<InexactData&>(IpData().AdditionalData());
54  DBG_ASSERT(dynamic_cast<InexactData*>(&IpData().AdditionalData()));
55  return inexact_data;
56  }
57 
60  {
61  InexactCq& inexact_cq = static_cast<InexactCq&>(IpCq().AdditionalCq());
62  DBG_ASSERT(dynamic_cast<InexactCq*>(&IpCq().AdditionalCq()));
63  return inexact_cq;
64  }
65 
66 private:
76 
80  );
81 
83  void operator=(
85  );
87 };
88 
89 } // namespace Ipopt
90 
91 #endif
void operator=(const InexactNormalStepCalculator &)
Overloaded Assignment Operator.
This is the base class for all algorithm strategy objects.
virtual bool ComputeNormalStep(SmartPtr< Vector > &normal_x, SmartPtr< Vector > &normal_s)=0
Method for computing the normal step.
InexactNormalStepCalculator()
Default Constructor.
Base class for computing the normal step for the inexact step calculation algorithm.
Template class for Smart Pointers.
Definition: IpSmartPtr.hpp:171
This class stores a list of user set options.
InexactData & InexData()
Method to easily access Inexact data.
IpoptAdditionalData & AdditionalData()
Get access to additional data object.
InexactCq & InexCq()
Method to easily access Inexact calculated quantities.
#define DBG_ASSERT(test)
Definition: IpDebug.hpp:27
Class for all Chen-Goldfarb penalty method specific calculated quantities.
Definition: IpInexactCq.hpp:20
Class to organize all the additional data required by the Chen-Goldfarb penalty function algorithm...
virtual bool InitializeImpl(const OptionsList &options, const std::string &prefix)=0
Implementation of the initialization method that has to be overloaded by for each derived class...
IpoptCalculatedQuantities & IpCq() const