Ipopt Documentation  
IpRestoPhase.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 // Authors: Carl Laird, Andreas Waechter IBM 2004-08-13
6 
7 #ifndef __IPRESTOPHASE_HPP__
8 #define __IPRESTOPHASE_HPP__
9 
10 #include "IpAlgStrategy.hpp"
11 #include "IpIpoptNLP.hpp"
12 #include "IpIpoptData.hpp"
14 
15 namespace Ipopt
16 {
17 
20 
23 DECLARE_STD_EXCEPTION(RESTORATION_CONVERGED_TO_FEASIBLE_POINT);
24 DECLARE_STD_EXCEPTION(RESTORATION_FAILED);
25 DECLARE_STD_EXCEPTION(RESTORATION_MAXITER_EXCEEDED);
26 DECLARE_STD_EXCEPTION(RESTORATION_CPUTIME_EXCEEDED);
28 DECLARE_STD_EXCEPTION(RESTORATION_WALLTIME_EXCEEDED);
29 DECLARE_STD_EXCEPTION(RESTORATION_USER_STOP);
31 
37 {
38 public:
41 
43  { }
44 
47  { }
49 
50  virtual bool InitializeImpl(
51  const OptionsList& options,
52  const std::string& prefix
53  ) = 0;
54 
58  virtual bool PerformRestoration() = 0;
59 
60 private:
70 
72  const RestorationPhase&
73  );
74 
76  void operator=(
77  const RestorationPhase&
78  );
80 };
81 
82 } // namespace Ipopt
83 
84 #endif
This is the base class for all algorithm strategy objects.
This class stores a list of user set options.
Base class for different restoration phases.
void operator=(const RestorationPhase &)
Default Assignment Operator.
virtual ~RestorationPhase()
Destructor.
RestorationPhase(const RestorationPhase &)
Copy Constructor.
RestorationPhase()
Default Constructor.
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.
virtual bool PerformRestoration()=0
Method called to perform restoration for the filter line search method.
This file contains a base class for all exceptions and a set of macros to help with exceptions.
DECLARE_STD_EXCEPTION(FATAL_ERROR_IN_LINEAR_SOLVER)