Minotaur 0.4.1
Docs for developers
|
Interface to read ampl models using AMPL Solver Library. AMPLInterface class provides methods to read and evaluate an instance from AMPL generated .nl files. It also provides methods to evaluate functions, gradients, jacobians and hessians. More...
#include <AMPLInterface.h>
Public Member Functions | |
AMPLInterface (Minotaur::EnvPtr env, std::string solver="minotaurampl") | |
Constructor. | |
~AMPLInterface () | |
Destroy. | |
void | freeASL () |
Free the ASL data structure myAsl_;. | |
ASL * | getAsl () |
Get pointer to the ASL structure myAsl_. | |
const double * | getInitialPoint () const |
Get the initial point provided in the .nl file. | |
Minotaur::UInt | getNumDefs () const |
Get the number of defined variables. | |
ReaderType | getReaderType () |
What kind of reader from ASL was used to read the .nl file. | |
Minotaur::ProblemPtr | readInstance (std::string fname) |
Read an instance from a .nl file 'fname'. | |
void | writeSolution (Minotaur::ConstSolutionPtr sol, Minotaur::SolveStatus status) |
Write the solution to the AMPL acceptable .sol file. | |
void | writeProblem (std::ostream &out) const |
Interface to read ampl models using AMPL Solver Library. AMPLInterface class provides methods to read and evaluate an instance from AMPL generated .nl files. It also provides methods to evaluate functions, gradients, jacobians and hessians.