Ipopt Documentation  
 
Loading...
Searching...
No Matches
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
15namespace Ipopt
16{
17
20
23DECLARE_STD_EXCEPTION(RESTORATION_CONVERGED_TO_FEASIBLE_POINT);
24DECLARE_STD_EXCEPTION(RESTORATION_FAILED);
25DECLARE_STD_EXCEPTION(RESTORATION_MAXITER_EXCEEDED);
26DECLARE_STD_EXCEPTION(RESTORATION_CPUTIME_EXCEEDED);
27DECLARE_STD_EXCEPTION(RESTORATION_USER_STOP);
29
35{
36public:
39
41 { }
42
45 { }
47
48 virtual bool InitializeImpl(
49 const OptionsList& options,
50 const std::string& prefix
51 ) = 0;
52
56 virtual bool PerformRestoration() = 0;
57
58private:
68
70 const RestorationPhase&
71 );
72
75 const RestorationPhase&
76 );
78};
79
80} // namespace Ipopt
81
82#endif
#define DECLARE_STD_EXCEPTION(__except_type)
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.