19 argv, NULL,
"bonmin", NULL);
24 options()->GetEnumValue(
"read_solution_file", ival,
"bonmin.");
26 printf(
"Reading solution file");
41 solver->journalist());
46 options(), argv, NULL,
"bonmin", NULL);
60 options(), argv, NULL,
"bonmin", &nl_file_content);
69 std::string& nl_file_content,
bool createContinuousSolver
76 options(), argv, NULL,
"bonmin", &nl_file_content);
84 std::string & nl,
bool createContinuousSolver )
94 argv, NULL,
"bonmin", &nl);
void initialize(char **&argv)
initialize bonmin with ampl model using the command line arguments.
void set_n_cols(int n)
Set the number of variables in the problem.
Ipopt::SmartPtr< Ipopt::Journalist > journalist()
Acces storage of Journalist for output.
Ipopt::SmartPtr< Bonmin::RegisteredOptions > roptions()
Access registered Options.
void setOptionsAndJournalist(Ipopt::SmartPtr< Bonmin::RegisteredOptions > roptions, Ipopt::SmartPtr< Ipopt::OptionsList > options, Ipopt::SmartPtr< Ipopt::Journalist > journalist)
Set the value for options, output...
void fillOsiInterface(AmplInterface &toFill, char **&argv, std::string &options, std::string &nl, bool createContinuousSolver=true)
For Bcp.
Class for providing an Osi interface to Ipopt with an ampl nl file as input.
const Bonmin::TNLPSolver * solver() const
OSSmartPtr< const U > ConstPtr(const OSSmartPtr< U > &smart_ptr)
A class for reading a .col or .row file containing name for variables and constraints (usually ampl g...
U * GetRawPtr(const OSSmartPtr< U > &smart_ptr)
Ipopt::SmartPtr< Ipopt::OptionsList > options_
List of Options.
Ipopt::SmartPtr< Ipopt::Journalist > journalist_
Storage of Journalist for output.
Ipopt::SmartPtr< Bonmin::RegisteredOptions > roptions_
Registered Options.
bool readFile()
Reads the .sol file.
OsiTMINLPInterface * nonlinearSolver()
Pointer to the non-linear solver used.
Ipopt::SmartPtr< Ipopt::OptionsList > options()
Acces list of Options.
void initialize(Ipopt::SmartPtr< Bonmin::RegisteredOptions > roptions, Ipopt::SmartPtr< Ipopt::OptionsList > options, Ipopt::SmartPtr< Ipopt::Journalist > journalist, const std::string &prefix, Ipopt::SmartPtr< TMINLP > tminlp)
Facilitator to initialize interface.
void mayPrintDoc()
May print documentation of options if options print_options_documentation is set to yes...
virtual void readOptionsFile()
Get the options from default text file (bonmin.opt) if don't already have them.
const char * prefix() const
Get prefix to use for options.
void readOptionsString(std::string opt_string)
Get the options from long string containing all.
void initialize(Ipopt::SmartPtr< TMINLP > tminlp, bool createContinuousSolver=true)
Initialize, read options and create appropriate bonmin setup.