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);
28DECLARE_STD_EXCEPTION(RESTORATION_WALLTIME_EXCEEDED);
29DECLARE_STD_EXCEPTION(RESTORATION_USER_STOP);
31
37{
38public:
41
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
60private:
70
72 const RestorationPhase&
73 );
74
77 const RestorationPhase&
78 );
80};
81
82} // namespace Ipopt
83
84#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.