Ipopt  3.12.9
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
IpRestoConvCheck.hpp
Go to the documentation of this file.
1 // Copyright (C) 2004, 2009 International Business Machines and others.
2 // All Rights Reserved.
3 // This code is published under the Eclipse Public License.
4 //
5 // $Id: IpRestoConvCheck.hpp 1861 2010-12-21 21:34:47Z andreasw $
6 //
7 // Authors: Carl Laird, Andreas Waechter IBM 2004-08-13
8 //
9 // was originally IpRestoFilterConvCheck.hpp (rev 781)
10 // separated by A Waechter IBM 2008-06-24
11 
12 #ifndef __IPRESTOCONVCHECK_HPP__
13 #define __IPRESTOCONVCHECK_HPP__
14 
15 #include "IpOptErrorConvCheck.hpp"
17 
18 namespace Ipopt
19 {
20 
31  {
32  public:
37 
39  virtual ~RestoConvergenceCheck();
41 
43  virtual bool InitializeImpl(const OptionsList& options,
44  const std::string& prefix);
45 
47  virtual ConvergenceStatus CheckConvergence(bool call_intermediate_callback = true);
48 
50  virtual void SetOrigLSAcceptor(const BacktrackingLSAcceptor& orig_ls_acceptor) = 0;
51 
54  static void RegisterOptions(SmartPtr<RegisteredOptions> roptions);
56  private:
65 
67  void operator=(const RestoConvergenceCheck&);
69 
72  virtual ConvergenceStatus
73  TestOrigProgress(Number orig_trial_barr, Number orig_trial_theta) = 0;
74 
87 
92 
95  };
96 
97 } // namespace Ipopt
98 
99 #endif
virtual bool InitializeImpl(const OptionsList &options, const std::string &prefix)
overloaded from AlgorithmStrategyObject
Number kappa_resto_
Fraction of required reduction in infeasibility before problem is considered to be solved...
bool first_resto_iter_
Flag indicating that this is the first call.
Index maximum_resto_iters_
Maximum number of succesive iterations in restoration phase.
double Number
Type of all numbers.
Definition: IpTypes.hpp:17
Base class for backtracking line search acceptors.
static void RegisterOptions(SmartPtr< RegisteredOptions > roptions)
Methods used by IpoptType.
virtual ~RestoConvergenceCheck()
Default destructor.
Template class for Smart Pointers.
Definition: IpSmartPtr.hpp:172
This class stores a list of user set options.
ConvergenceStatus
Convergence return enum.
Definition: IpConvCheck.hpp:35
virtual void SetOrigLSAcceptor(const BacktrackingLSAcceptor &orig_ls_acceptor)=0
Method for setting the LS acceptor from the main algorithm.
virtual ConvergenceStatus CheckConvergence(bool call_intermediate_callback=true)
overloaded from ConvergenceCheck
int Index
Type of all indices of vectors, matrices etc.
Definition: IpTypes.hpp:19
RestoConvergenceCheck()
Default Constructor.
Index maximum_iters_
Maximum number of iterations in restoration phase.
Number orig_constr_viol_tol_
Constraint violation tolerance for original algorithm.
virtual ConvergenceStatus TestOrigProgress(Number orig_trial_barr, Number orig_trial_theta)=0
Method for checking progress with original globalization mechanism.
Index successive_resto_iter_
Counter for successive iterations in restoration phase.
Convergence check for the restoration phase.
void operator=(const RestoConvergenceCheck &)
Overloaded Equals Operator.