Ipopt 3.11.9
Loading...
Searching...
No Matches
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// $Id: IpInexactNormalStepCalc.hpp 1861 2010-12-21 21:34:47Z andreasw $
6//
7// Authors: Andreas Waechter IBM 2008-08-31
8
9#ifndef __IPINEXACTNORMALSTEPCALC_HPP__
10#define __IPINEXACTNORMALSTEPCALC_HPP__
11
12#include "IpAlgStrategy.hpp"
13#include "IpInexactCq.hpp"
14
15namespace Ipopt
16{
21 {
22 public:
28
33
35 virtual bool InitializeImpl(const OptionsList& options,
36 const std::string& prefix) = 0;
37
42 virtual bool ComputeNormalStep(SmartPtr<Vector>& normal_x,
43 SmartPtr<Vector>& normal_s) = 0;
44
45 protected:
48 {
49 InexactData& inexact_data =
50 static_cast<InexactData&>(IpData().AdditionalData());
51 DBG_ASSERT(dynamic_cast<InexactData*>(&IpData().AdditionalData()));
52 return inexact_data;
53 }
54
57 {
58 InexactCq& inexact_cq =
59 static_cast<InexactCq&>(IpCq().AdditionalCq());
60 DBG_ASSERT(dynamic_cast<InexactCq*>(&IpCq().AdditionalCq()));
61 return inexact_cq;
62 }
63
64 private:
75
79 };
80
81} // namespace Ipopt
82
83#endif
#define DBG_ASSERT(test)
Definition IpDebug.hpp:38
This is the base class for all algorithm strategy objects.
IpoptCalculatedQuantities & IpCq() const
Class for all Chen-Goldfarb penalty method specific calculated quantities.
Class to organize all the additional data required by the Chen-Goldfarb penalty function algorithm.
Base class for computing the normal step for the inexact step calculation algorithm.
InexactCq & InexCq()
Method to easily access Inexact calculated quantities.
void operator=(const InexactNormalStepCalculator &)
Overloaded Equals Operator.
virtual bool InitializeImpl(const OptionsList &options, const std::string &prefix)=0
overloaded from AlgorithmStrategyObject
virtual ~InexactNormalStepCalculator()
Default destructor.
InexactNormalStepCalculator(const InexactNormalStepCalculator &)
Copy Constructor.
InexactData & InexData()
Method to easily access Inexact data.
virtual bool ComputeNormalStep(SmartPtr< Vector > &normal_x, SmartPtr< Vector > &normal_s)=0
Method for computing the normal step.
IpoptAdditionalData & AdditionalData()
Get access to additional data object.
This class stores a list of user set options.
Template class for Smart Pointers.