The OSosrl2ampl Class. More...
#include <OSosrl2ampl.h>
Public Member Functions | |
OSosrl2ampl () | |
the OSosrl2ampl class constructor More... | |
~OSosrl2ampl () | |
the OSosrl2ampl class destructor More... | |
bool | writeSolFile (std::string osrl, ASL *asl, std::string filename) |
Convert the solution to AMPL .sol format. More... | |
Private Attributes | |
ograd * | og |
og is a pointer to the AMPL data structure holding the objective function coefficients More... | |
ASL * | asl |
Pointers to AMPL data structures. More... | |
ASL * | cw |
ASL * | rw |
std::string | stub |
stub is the name of the file with the nl instance More... | |
The OSosrl2ampl Class.
Definition at line 44 of file OSosrl2ampl.h.
OSosrl2ampl::OSosrl2ampl | ( | ) |
the OSosrl2ampl class constructor
Definition at line 63 of file OSosrl2ampl.cpp.
OSosrl2ampl::~OSosrl2ampl | ( | ) |
the OSosrl2ampl class destructor
Definition at line 67 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). |
First check if there is a solution (There might not be if some error condition was set)
Definition at line 71 of file OSosrl2ampl.cpp.
|
private |
og is a pointer to the AMPL data structure holding the objective function coefficients
Definition at line 69 of file OSosrl2ampl.h.
|
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.
|
private |
Definition at line 76 of file OSosrl2ampl.h.
|
private |
Definition at line 76 of file OSosrl2ampl.h.
|
private |
stub is the name of the file with the nl instance
Definition at line 80 of file OSosrl2ampl.h.