7 #ifndef __IPIPOPTAPPLICATION_HPP__ 8 #define __IPIPOPTAPPLICATION_HPP__ 25 class IpoptCalculatedQuantities;
26 class AlgorithmBuilder;
27 class RegisteredOptions;
29 class SolveStatistics;
36 bool create_console_out =
true,
37 bool create_empty =
false 71 bool allow_clobber =
false 92 std::string params_file,
93 bool allow_clobber =
false 114 const char* params_file,
115 bool allow_clobber =
false 118 return Initialize(std::string(params_file), allow_clobber);
136 bool allow_clobber =
false 182 virtual bool OpenOutputFile(
183 std::string file_name,
241 void PrintCopyrightMessage();
257 bool oldval = rethrow_nonipoptexception_;
258 rethrow_nonipoptexception_ = dorethrow;
262 static void RegisterOptions(
268 RegisterAllIpoptOptions(
SmartPtr< IpoptNLP > ip_nlp_
IpoptNLP Object for the NLP.
virtual SmartPtr< RegisteredOptions > RegOptions()
Get a pointer to RegisteredOptions object to add new options.
bool rethrow_nonipoptexception_
Decide whether non-ipopt non-bad_alloc non-overflow_error exceptions should be rethrown.
DECLARE_STD_EXCEPTION(FATAL_ERROR_IN_LINEAR_SOLVER)
virtual SmartPtr< Journalist > Jnlst()
Get the Journalist for printing output.
EJournalLevel
Print Level Enum.
SmartPtr< OptionsList > options_
OptionsList used for the application.
This file contains a base class for all exceptions and a set of macros to help with exceptions...
Template class for Smart Pointers.
Storing the reference count of all the smart pointers that currently reference it.
SmartPtr< RegisteredOptions > reg_options_
RegisteredOptions.
SmartPtr< Journalist > jnlst_
Journalist for reporting output.
bool RethrowNonIpoptException(bool dorethrow)
Method to set whether non-ipopt non-bad_alloc non-overflow_error exceptions are rethrown by Ipopt...
bool inexact_algorithm_
Flag indicating if we are to use the inexact linear solver option.
virtual SmartPtr< OptionsList > Options()
Get the options list for setting options.
bool read_params_dat_
Decide whether or not the ipopt.opt file should be read.
SmartPtr< SolveStatistics > statistics_
Object for storing statistics about the most recent optimization run.
SmartPtr< IpoptCalculatedQuantities > ip_cq_
IpoptCalculatedQuantities Object for the NLP.
SmartPtr< const U > ConstPtr(const SmartPtr< U > &smart_ptr)
SmartPtr< IpoptAlgorithm > alg_
Object with the algorithm skeleton.
virtual SmartPtr< const OptionsList > Options() const
Get the options list for setting options (const version)
virtual ApplicationReturnStatus Initialize(const char *params_file, bool allow_clobber=false)
Initialization method.
ApplicationReturnStatus
Return codes for the Optimize call for an application.
IPOPTLIB_EXPORT class Ipopt::IpoptApplication *IPOPT_CALLCONV IpoptApplicationFactory()
This is the main application class for making calls to Ipopt.
SmartPtr< IpoptData > ip_data_
IpoptData Object for the NLP.
SmartPtr< NLP > nlp_adapter_
Pointer to the TNLPAdapter used to convert the TNLP to an NLP.
bool replace_bounds_
Flag indicating if all bounds should be replaced by inequality constraints.