BonminAmplInterface Class Reference

Class for providing an Osi interface to Ipopt with an ampl nl file as input. More...

#include <BonminAmplInterface.hpp>

Inheritance diagram for BonminAmplInterface:

Inheritance graph
[legend]
Collaboration diagram for BonminAmplInterface:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 BonminAmplInterface ()
 Default constructor.
 BonminAmplInterface (char **&amplArgs, bool=true)
 Constructor with inputed ampl command line (reads model from nl file).
 BonminAmplInterface (const BonminAmplInterface &other)
 Copy constructor.
virtual BonminAmplInterfaceclone (bool CopyData=true) const
 Clone.
virtual ~BonminAmplInterface ()
 Destructor.
const Ipopt::AmplTMINLPamplModel () const
 Fast access to AmplTMINLP.
Methods to input a problem
virtual void readAmplNlFile (char **&filename, std::string *ipopt_file_content=NULL, std::string *nl_file_content=NULL, bool=true)
 Read an ampl .
void writeAmplSolFile (std::string message, const double *primalSol=NULL)
 write ampl solution file

Protected Attributes

Ipopt::SmartPtr< Ipopt::AmplTMINLPamplTminlp_
 TMINLP problem (the original problem usually an AmplTMINLP).

Detailed Description

Class for providing an Osi interface to Ipopt with an ampl nl file as input.

Definition at line 7 of file BonminAmplInterface.hpp.


Constructor & Destructor Documentation

BonminAmplInterface::BonminAmplInterface (  ) 

Default constructor.

BonminAmplInterface::BonminAmplInterface ( char **&  amplArgs,
bool  = true 
)

Constructor with inputed ampl command line (reads model from nl file).

BonminAmplInterface::BonminAmplInterface ( const BonminAmplInterface other  ) 

Copy constructor.

virtual BonminAmplInterface::~BonminAmplInterface (  )  [virtual]

Destructor.


Member Function Documentation

virtual BonminAmplInterface* BonminAmplInterface::clone ( bool  CopyData = true  )  const [virtual]

Clone.

Reimplemented from IpoptInterface.

virtual void BonminAmplInterface::readAmplNlFile ( char **&  filename,
std::string *  ipopt_file_content = NULL,
std::string *  nl_file_content = NULL,
bool  = true 
) [virtual]

Read an ampl .

nl file from the given filename

void BonminAmplInterface::writeAmplSolFile ( std::string  message,
const double *  primalSol = NULL 
)

write ampl solution file

const Ipopt::AmplTMINLP* BonminAmplInterface::amplModel (  )  const [inline]

Fast access to AmplTMINLP.

Definition at line 34 of file BonminAmplInterface.hpp.

References amplTminlp_, and Ipopt::GetRawPtr().


Member Data Documentation

Ipopt::SmartPtr<Ipopt::AmplTMINLP> BonminAmplInterface::amplTminlp_ [protected]

TMINLP problem (the original problem usually an AmplTMINLP).

Definition at line 41 of file BonminAmplInterface.hpp.

Referenced by amplModel().


The documentation for this class was generated from the following file:
Generated on Fri May 16 21:11:34 2008 for Bonmin by  doxygen 1.4.7