IpoptApplication Class Reference

#include <IpIpoptApplication.hpp>

Inheritance diagram for IpoptApplication:

ReferencedObject

List of all members.


Detailed Description

This is the main application class for making calls to Ipopt.


Public Member Functions

 IpoptApplication (bool create_console_out=true)
virtual ~IpoptApplication ()
void Initialize (std::string params_file="ipopt.opt")
 Initialize method.
void Initialize (std::istream &is)
bool OpenOutputFile (std::string file_name, EJournalLevel print_level)
 Method for opening an output file with given print_level.
Solve methods
ApplicationReturnStatus OptimizeTNLP (const SmartPtr< TNLP > &tnlp)
 Solve a problem that inherits from TNLP.
ApplicationReturnStatus OptimizeNLP (const SmartPtr< NLP > &nlp, SmartPtr< AlgorithmBuilder > alg_builder=NULL)
 Solve a problem that inherits from NLP.
ApplicationReturnStatus ReOptimizeTNLP (const SmartPtr< TNLP > &tnlp)
 Solve a problem (that inherits from TNLP) for a repeated time.
ApplicationReturnStatus ReOptimizeNLP (const SmartPtr< NLP > &nlp)
 Solve a problem (that inherits from NLP) for a repeated time.
Accessor methods
SmartPtr< JournalistJnlst ()
 Get the Journalist for printing output.
SmartPtr< RegisteredOptionsRegOptions ()
 Get a pointer to RegisteredOptions object to add new options.
SmartPtr< OptionsListOptions ()
 Get the options list for setting options.
SmartPtr< const OptionsListOptions () const
 Get the options list for setting options (const version).
SmartPtr< SolveStatisticsStatistics ()
 Get the object with the statistics about the most recent optimization run.

Static Public Member Functions

Methods for IpoptTypeInfo
static void RegisterOptions (SmartPtr< RegisteredOptions > roptions)


Constructor & Destructor Documentation

IpoptApplication ( bool  create_console_out = true  ) 

~IpoptApplication (  )  [virtual]

References DBG_START_METH.


Member Function Documentation

void Initialize ( std::string  params_file = "ipopt.opt"  ) 

Initialize method.

This method reads the params file and initializes the journalists. You should call this method at some point before the first optimize call. Note: you can skip the processing of a params file by setting params_file to ""

References Ipopt::J_MAIN, Ipopt::J_SUMMARY, and IpoptException::ReportException().

void Initialize ( std::istream &  is  ) 

ApplicationReturnStatus OptimizeTNLP ( const SmartPtr< TNLP > &  tnlp  ) 

Solve a problem that inherits from TNLP.

References Ipopt::ConstPtr(), Ipopt::GetRawPtr(), and IpoptApplication::OptimizeNLP().

ApplicationReturnStatus OptimizeNLP ( const SmartPtr< NLP > &  nlp,
SmartPtr< AlgorithmBuilder alg_builder = NULL 
)

ApplicationReturnStatus ReOptimizeTNLP ( const SmartPtr< TNLP > &  tnlp  ) 

Solve a problem (that inherits from TNLP) for a repeated time.

The OptimizeTNLP method must have been called before. The TNLP must be the same object, and the structure (number of variables and constraints and position of nonzeros in Jacobian and Hessian must be the same).

References ASSERT_EXCEPTION, DBG_ASSERT, Ipopt::GetRawPtr(), Ipopt::IsValid(), IpoptApplication::ReOptimizeNLP(), and TNLPAdapter::tnlp().

ApplicationReturnStatus ReOptimizeNLP ( const SmartPtr< NLP > &  nlp  ) 

Solve a problem (that inherits from NLP) for a repeated time.

The OptimizeNLP method must have been called before. The NLP must be the same object, and the structure (number of variables and constraints and position of nonzeros in Jacobian and Hessian must be the same).

References ASSERT_EXCEPTION, DBG_ASSERT, Ipopt::GetRawPtr(), Ipopt::IsValid(), and OrigIpoptNLP::nlp().

Referenced by IpoptApplication::ReOptimizeTNLP().

bool OpenOutputFile ( std::string  file_name,
EJournalLevel  print_level 
)

Method for opening an output file with given print_level.

Returns false if there was a problem.

References Ipopt::IsNull(), Ipopt::J_DBG, and Ipopt::J_NONE.

Referenced by IpoptApplication::Initialize().

SmartPtr<Journalist> Jnlst (  )  [inline]

Get the Journalist for printing output.

SmartPtr<RegisteredOptions> RegOptions (  )  [inline]

Get a pointer to RegisteredOptions object to add new options.

SmartPtr<OptionsList> Options (  )  [inline]

Get the options list for setting options.

SmartPtr<const OptionsList> Options (  )  const [inline]

Get the options list for setting options (const version).

References Ipopt::ConstPtr().

SmartPtr< SolveStatistics > Statistics (  ) 

Get the object with the statistics about the most recent optimization run.

void RegisterOptions ( SmartPtr< RegisteredOptions roptions  )  [static]


The documentation for this class was generated from the following files:

Generated on Fri Sep 26 07:44:26 2008 for SimTKcore by  doxygen 1.5.6