Ipopt 3.11.9
Loading...
Searching...
No Matches
IpInexactData.hpp
Go to the documentation of this file.
1// Copyright (C) 2008, 2009 International Business Machines and others.
2// All Rights Reserved.
3// This code is published under the Eclipse Public License.
4//
5// $Id: IpInexactData.hpp 1861 2010-12-21 21:34:47Z andreasw $
6//
7// Authors: Andreas Waechter IBM 2008-08-31
8
9#ifndef __IPINEXACTDATA_HPP__
10#define __IPINEXACTDATA_HPP__
11
12#include "IpIpoptData.hpp"
13
14namespace Ipopt
15{
16
20 {
21 public:
26
30
36 bool Initialize(const Journalist& jnlst,
37 const OptionsList& options,
38 const std::string& prefix);
39
42
48
70
92
102 {
103 return full_step_accepted_;
104 }
106
110 {
111 curr_nu_ = nu;
112 }
114 {
115 return curr_nu_;
116 }
118
126 {
127 return compute_normal_;
128 }
130
138 {
140 }
142
143 private:
154
156 void operator=(const InexactData&);
158
164
170
173
176
179
182 };
183
184} // namespace Ipopt
185
186#endif
Class to organize all the additional data required by the Chen-Goldfarb penalty function algorithm.
void set_full_step_accepted(bool full_step_accepted)
SmartPtr< const Vector > normal_x_
SmartPtr< const Vector > tangential_x_
bool full_step_accepted_
Flag indicating if most recent step has been fully accepted.
void set_compute_normal(bool compute_normal)
bool next_compute_normal_
next iteration normal step computation flag
InexactData()
Constructor.
SmartPtr< const Vector > tangential_s_
void set_tangential_x(SmartPtr< const Vector > &tangential_x)
void set_next_compute_normal(bool next_compute_normal)
void AcceptTrialPoint()
Do whatever is necessary to accept a trial point as current iterate.
void set_normal_x(SmartPtr< Vector > &normal_x)
void set_tangential_s(SmartPtr< const Vector > &tangential_s)
~InexactData()
Default destructor.
SmartPtr< const Vector > normal_s()
SmartPtr< const Vector > normal_s_
InexactData(const InexactData &)
Copy Constructor.
SmartPtr< const Vector > normal_x()
Number curr_nu_
current value of penalty parameter
void set_normal_s(SmartPtr< Vector > &normal_s)
void operator=(const InexactData &)
Overloaded Equals Operator.
bool InitializeDataStructures()
Initialize Data Structures at the beginning.
bool Initialize(const Journalist &jnlst, const OptionsList &options, const std::string &prefix)
This method must be called to initialize the global algorithmic parameters.
SmartPtr< const Vector > tangential_s()
SmartPtr< const Vector > tangential_x()
bool compute_normal_
current normal step computation flag
void set_curr_nu(Number nu)
Base class for additional data that is special to a particular type of algorithm, such as the CG pena...
Class responsible for all message output.
This class stores a list of user set options.
Template class for Smart Pointers.
SmartPtr< const U > ConstPtr(const SmartPtr< U > &smart_ptr)
double Number
Type of all numbers.
Definition IpTypes.hpp:17