The OSosrl2ampl Class. More...
#include <OSosrl2ampl.h>
Public Member Functions | |
OSosrl2ampl () | |
the OSosrl2ampl class constructor | |
~OSosrl2ampl () | |
the OSosrl2ampl class destructor | |
bool | writeSolFile (std::string osrl, ASL *asl, std::string filename) |
Convert the solution to AMPL .sol format. | |
Private Attributes | |
ograd * | og |
og is a pointer to the AMPL data structure holding the objective function coefficients | |
ASL * | asl |
Pointers to AMPL data structures. | |
ASL * | cw |
ASL * | rw |
std::string | stub |
stub is the name of the file with the nl instance |
The OSosrl2ampl Class.
Definition at line 44 of file OSosrl2ampl.h.
OSosrl2ampl::OSosrl2ampl | ( | ) |
the OSosrl2ampl class constructor
Definition at line 65 of file OSosrl2ampl.cpp.
OSosrl2ampl::~OSosrl2ampl | ( | ) |
the OSosrl2ampl class destructor
Definition at line 69 of file OSosrl2ampl.cpp.
bool OSosrl2ampl::writeSolFile | ( | std::string | osrl, | |
ASL * | asl, | |||
std::string | filename | |||
) |
Convert the solution to AMPL .sol format.
osrl | is a string containing the result information | |
asl | is a pointer to an ASL data structure | |
filename | is the name of the output file (e.g., as returned from the solver). |
Definition at line 73 of file OSosrl2ampl.cpp.
ograd* OSosrl2ampl::og [private] |
og is a pointer to the AMPL data structure holding the objective function coefficients
Definition at line 69 of file OSosrl2ampl.h.
ASL* OSosrl2ampl::asl [private] |
Pointers to AMPL data structures.
cw is loaded in column-wise format. rw is loaded in row-wise format. asl is for conveniently switching.
Definition at line 76 of file OSosrl2ampl.h.
ASL * OSosrl2ampl::cw [private] |
Definition at line 76 of file OSosrl2ampl.h.
ASL * OSosrl2ampl::rw [private] |
Definition at line 76 of file OSosrl2ampl.h.
std::string OSosrl2ampl::stub [private] |
stub is the name of the file with the nl instance
Definition at line 80 of file OSosrl2ampl.h.