22 #include "OSInstance.h"
102 ASL*
getASL(std::string name);
125 bool setASL(ASL *asl, ASL *rw, ASL *cw);
This file defines the OSnLNode class along with its derived classes.
ASL * cw
Pointers to AMPL data structures.
ograd * og
og is a pointer to the AMPL data structure holding the objective function coefficients ...
bool readNl(std::string stub)
read the nl file
bool createOSObjects()
create an OSInstance and OSOption representation from the AMPL nl content (Some of the information in...
void setOsol(std::string osol)
set the osol string
OSnl2OS()
the OSnl2OS class constructor
std::vector< double > operand
void fint fint fint real fint real real real real real real real real real * e
OSnLNode * walkTree(expr *e)
parse an nl tree structure holding a nonlinear expression
std::string stub
stub is the name of the file with the nl instance
OSOption * osoption
osoption is a pointer to the OSOption object that gets created from the information in the nl file (a...
OS_AMPL_SUFFIX_SCOPE scope
std::string jobID
jobID is a string containing a jobID that may have been supplied on the command line (it may be empty...
~OSnl2OS()
the OSnl2OS class destructor
std::string osol
osol is a string containing the content of the OS option file (it may be empty if no option file was ...
std::vector< std::string > op_type
Used to read an OSoL string.
bool setASL(ASL *asl, ASL *rw, ASL *cw)
set the pointers to the three ASL objects
ASL * getASL(std::string name)
return a pointer to an ASL object
void setIBVar(OSInstance *osinstance, int lower, int upper)
special version of the previous method because AMPL makes no distinction between integer and binary v...
void setJobID(std::string jobID)
set the job ID
The in-memory representation of an OSiL instance..
OS_AMPL_SUFFIX_DIRECTION direction
The OSnLNode Class for nonlinear expressions.
OSInstance * osinstance
osinstance is a pointer to the OSInstance object that gets created from the information in the nl fil...
void setVar(OSInstance *osinstance, int lower, int upper, char vartype)
store a number of variables into an OSInstance object
OSoLReader * osolreader
we may need to parse an OSoL file if there is suffix information indicated in the AMPL nl content ...