Go to the documentation of this file.
7 #ifndef __IPALGSTRATEGY_HPP__
8 #define __IPALGSTRATEGY_HPP__
41 : initialize_called_(false)
72 const std::string& prefix
75 initialize_called_ =
true;
82 bool retval = InitializeImpl(options, prefix);
85 initialize_called_ =
false;
100 const std::string& prefix
103 initialize_called_ =
true;
110 bool retval = InitializeImpl(options, prefix);
113 initialize_called_ =
false;
123 virtual bool InitializeImpl(
125 const std::string& prefix
virtual ~AlgorithmStrategyObject()
Destructor.
Class to organize all the data required by the algorithm.
IpoptCalculatedQuantities & IpCq() const
Class for all IPOPT specific calculated quantities.
const Journalist & Jnlst() const
This file contains a base class for all exceptions and a set of macros to help with exceptions.
IpoptData & IpData() const
SmartPtr< IpoptNLP > ip_nlp_
Template class for Smart Pointers.
bool ReducedInitialize(const Journalist &jnlst, const OptionsList &options, const std::string &prefix)
Reduced version of the Initialize method, which does not require special Ipopt information.
SmartPtr< const Journalist > jnlst_
AlgorithmStrategyObject()
Default Constructor.
SmartPtr< IpoptCalculatedQuantities > ip_cq_
Class responsible for all message output.
This is the base class for all algorithm strategy objects.
bool IsValid(const SmartPtr< U > &smart_ptr)
bool Initialize(const Journalist &jnlst, IpoptNLP &ip_nlp, IpoptData &ip_data, IpoptCalculatedQuantities &ip_cq, const OptionsList &options, const std::string &prefix)
This method is called every time the algorithm starts again - it is used to reset any internal state.
SmartPtr< IpoptData > ip_data_
This class stores a list of user set options.
bool initialize_called_
flag indicating if Initialize method has been called (for debugging)
Storing the reference count of all the smart pointers that currently reference it.
This is the abstract base class for classes that map the traditional NLP into something that is more ...