Ipopt Documentation  
 
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// Authors: Andreas Waechter IBM 2008-08-31
6
7#ifndef __IPINEXACTDATA_HPP__
8#define __IPINEXACTDATA_HPP__
9
10#include "IpIpoptData.hpp"
11
12namespace Ipopt
13{
14
19{
20public:
23
25
29
32
38 const Journalist& jnlst,
39 const OptionsList& options,
40 const std::string& prefix
41 );
42
45
54
59 )
60 {
62 normal_x = NULL;
63 }
64
67 )
68 {
70 normal_s = NULL;
71 }
72
77
83
93
101
106
112
125
127 {
128 return full_step_accepted_;
129 }
131
135 Number nu
136 )
137 {
138 curr_nu_ = nu;
139 }
140
142 {
143 return curr_nu_;
144 }
146
150 bool compute_normal
151 )
152 {
154 }
155
157 {
158 return compute_normal_;
159 }
161
170
172 {
174 }
176
177private:
188
190 const InexactData&
191 );
192
195 const InexactData&
196 );
198
204
210
213
216
219
222};
223
224} // namespace Ipopt
225
226#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()
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 Assignment 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.
This file contains a base class for all exceptions and a set of macros to help with exceptions.
SmartPtr< const U > ConstPtr(const SmartPtr< U > &smart_ptr)
ipnumber Number
Type of all numbers.
Definition IpTypes.hpp:17