Bonmin  1.7
Public Member Functions | Protected Member Functions | Protected Attributes | Private Attributes
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:
Bonmin::OsiTMINLPInterface

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 only available for Bonmin's friends and child classes.

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

Copy constructor.

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

Destructor.


Member Function Documentation

virtual 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]
virtual OsiSolverInterface* Bonmin::AmplInterface::clone ( bool  CopyData = true) [virtual]

Clone.

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

Fast access to AmplTMINLP.

Definition at line 45 of file BonAmplInterface.hpp.

References amplTminlp_.

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

To set some application specific defaults.

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

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


Member Data Documentation

TMINLP problem (the original problem usually an AmplTMINLP).

Definition at line 57 of file BonAmplInterface.hpp.

Referenced by amplModel().

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 file: