Bonmin
1.4trunk
|
Class for providing an Osi interface to Ipopt with an ampl nl file as input. More...
#include <BonAmplInterface.hpp>
Public Member Functions | |
AmplInterface () | |
Default constructor. | |
AmplInterface (const AmplInterface &other) | |
Copy constructor. | |
virtual OsiSolverInterface * | clone (bool CopyData=true) |
Clone. | |
virtual | ~AmplInterface () |
Destructor. | |
const AmplTMINLP * | amplModel () 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? |
Class for providing an Osi interface to Ipopt with an ampl nl file as input.
Definition at line 22 of file BonAmplInterface.hpp.
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.
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.
Ipopt::SmartPtr<Bonmin::AmplTMINLP> Bonmin::AmplInterface::amplTminlp_ [protected] |
TMINLP problem (the original problem usually an AmplTMINLP).
Definition at line 57 of file BonAmplInterface.hpp.
Referenced by amplModel().
int Bonmin::AmplInterface::writeAmplSolFile_ [private] |
Write the ampl solution file or write a bonmin one?
Definition at line 61 of file BonAmplInterface.hpp.