#include <BonminAmplInterface.hpp>
Inheritance diagram for BonminAmplInterface:
Public Member Functions | |
BonminAmplInterface () | |
Default constructor. | |
BonminAmplInterface (char **&lArgs, bool=true) | |
Constructor with inputed ampl command line (reads model from nl file). | |
BonminAmplInterface (const BonminAmplInterface &other) | |
Copy constructor. | |
virtual BonminAmplInterface * | clone (bool CopyData=true) const |
Clone. | |
virtual | ~BonminAmplInterface () |
Destructor. | |
const Ipopt::AmplTMINLP * | amplModel () 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::AmplTMINLP > | amplTminlp_ |
TMINLP problem (the original problem usually an AmplTMINLP). |
Definition at line 7 of file BonminAmplInterface.hpp.
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.
virtual BonminAmplInterface* BonminAmplInterface::clone | ( | bool | CopyData = true |
) | const [virtual] |
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().
TMINLP problem (the original problem usually an AmplTMINLP).
Definition at line 41 of file BonminAmplInterface.hpp.
Referenced by amplModel().