Bonmin::AmplInterface Class Reference

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

#include <BonAmplInterface.hpp>

Inheritance diagram for Bonmin::AmplInterface:
Inheritance graph
[legend]
Collaboration diagram for Bonmin::AmplInterface:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 AmplInterface ()
 Default constructor.
 AmplInterface (const AmplInterface &other)
 Copy constructor.
virtual OsiSolverInterface * clone (bool CopyData=true)
 Clone.
virtual ~AmplInterface ()
 Destructor.
const AmplTMINLPamplModel () const
 Fast access to AmplTMINLP.
virtual void setAppDefaultOptions (Ipopt::SmartPtr< Ipopt::OptionsList > Options)
 To set some application specific defaults.
Methods to input a problem



virtual void readAmplNlFile (char **&argv, Ipopt::SmartPtr< Bonmin::RegisteredOptions > roptions, Ipopt::SmartPtr< Ipopt::OptionsList > options, Ipopt::SmartPtr< Ipopt::Journalist > journalist, std::string *nl_file_content=NULL)

Protected Member Functions

void readNames ()
 Read variables and row names in .col and .row files.

Protected Attributes

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

Private Attributes

int writeAmplSolFile_
 Write the ampl solution file or write a bonmin one?

Detailed Description

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

Definition at line 22 of file BonAmplInterface.hpp.


Constructor & Destructor Documentation

Bonmin::AmplInterface::AmplInterface (  ) 

Default constructor.

Default constructor no initialization.

Default constructor only available for Bonmin's friends and child classes.

Definition at line 29 of file BonAmplInterface.cpp.

Bonmin::AmplInterface::AmplInterface ( const AmplInterface other  ) 

Copy constructor.

Definition at line 34 of file BonAmplInterface.cpp.

Bonmin::AmplInterface::~AmplInterface (  )  [virtual]

Destructor.

Definition at line 47 of file BonAmplInterface.cpp.


Member Function Documentation

void Bonmin::AmplInterface::readAmplNlFile ( char **&  argv,
Ipopt::SmartPtr< Bonmin::RegisteredOptions roptions,
Ipopt::SmartPtr< Ipopt::OptionsList >  options,
Ipopt::SmartPtr< Ipopt::Journalist >  journalist,
std::string *  nl_file_content = NULL 
) [virtual]

Definition at line 53 of file BonAmplInterface.cpp.

OsiSolverInterface * Bonmin::AmplInterface::clone ( bool  CopyData = true  )  [virtual]

Clone.

Reimplemented in Couenne::CouenneInterface.

Definition at line 41 of file BonAmplInterface.cpp.

const AmplTMINLP* Bonmin::AmplInterface::amplModel (  )  const [inline]

Fast access to AmplTMINLP.

Definition at line 45 of file BonAmplInterface.hpp.

void Bonmin::AmplInterface::setAppDefaultOptions ( Ipopt::SmartPtr< Ipopt::OptionsList >  Options  )  [virtual]

To set some application specific defaults.

Reimplemented in Couenne::CouenneInterface.

Definition at line 106 of file BonAmplInterface.cpp.

void Bonmin::AmplInterface::readNames (  )  [protected]

Read variables and row names in .col and .row files.

Definition at line 111 of file BonAmplInterface.cpp.


Member Data Documentation

TMINLP problem (the original problem usually an AmplTMINLP).

Definition at line 57 of file BonAmplInterface.hpp.

Write the ampl solution file or write a bonmin one?

Definition at line 61 of file BonAmplInterface.hpp.


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

Generated on 16 Feb 2012 by  doxygen 1.6.1