13 #ifndef BonminAmplInterface_H
14 #define BonminAmplInterface_H
33 std::string* nl_file_content = NULL);
38 virtual OsiSolverInterface *
clone(
bool CopyData =
true);
virtual ~AmplInterface()
Destructor.
virtual OsiSolverInterface * clone(bool CopyData=true)
Clone.
const Ipopt::SmartPtr< Ipopt::OptionsList > options() const
Retrieve OsiTMINLPApplication option list.
This is class provides an Osi interface for a Mixed Integer Linear Program expressed as a TMINLP (so ...
void readNames()
Read variables and row names in .col and .row files.
Class for providing an Osi interface to Ipopt with an ampl nl file as input.
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)
U * GetRawPtr(const OSSmartPtr< U > &smart_ptr)
AmplInterface()
Default constructor.
Ipopt::SmartPtr< Bonmin::AmplTMINLP > amplTminlp_
TMINLP problem (the original problem usually an AmplTMINLP).
const AmplTMINLP * amplModel() const
Fast access to AmplTMINLP.
virtual void setAppDefaultOptions(Ipopt::SmartPtr< Ipopt::OptionsList > Options)
To set some application specific defaults.
int writeAmplSolFile_
Write the ampl solution file or write a bonmin one?