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
bool IsValid(const SmartPtr< U > &smart_ptr)
virtual ~AlgorithmStrategyObject()
Destructor.
Class for all IPOPT specific calculated quantities.
SmartPtr< IpoptNLP > ip_nlp_
This is the base class for all algorithm strategy objects.
AlgorithmStrategyObject()
Default Constructor.
SmartPtr< IpoptData > ip_data_
Template class for Smart Pointers.
Storing the reference count of all the smart pointers that currently reference it.
This class stores a list of user set options.
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...
Class to organize all the data required by the algorithm.
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_
Class responsible for all message output.
IpoptData & IpData() const
bool initialize_called_
flag indicating if Initialize method has been called (for debugging)
This is the abstract base class for classes that map the traditional NLP into something that is more ...
SmartPtr< IpoptCalculatedQuantities > ip_cq_
IpoptCalculatedQuantities & IpCq() const
const Journalist & Jnlst() const