This file defines the OSInstance class along with its supporting classes.
This file defines the OSnLNode class along with its derived classes.
@ OS_AMPL_SUFFIX_SCOPE_objectives
@ OS_AMPL_SUFFIX_SCOPE_problems
@ OS_AMPL_SUFFIX_SCOPE_constraints
@ OS_AMPL_SUFFIX_SCOPE_variables
@ OS_AMPL_SUFFIX_TYPE_integer
@ OS_AMPL_SUFFIX_TYPE_double
@ OS_AMPL_SUFFIX_DIRECTION_both
@ OS_AMPL_SUFFIX_DIRECTION_toAMPL
@ OS_AMPL_SUFFIX_DIRECTION_toSolver
@ OS_AMPL_SUFFIX_DIRECTION_local
The in-memory representation of an OSiL instance.
The OSnLNode Class for nonlinear expressions.
bool setASL(ASL *asl, ASL *rw, ASL *cw)
set the pointers to the three ASL objects
~OSnl2OS()
the OSnl2OS class destructor
std::vector< std::string > op_type
OSnLNode * walkTree(expr *e)
parse an nl tree structure holding a nonlinear expression
void setJobID(std::string jobID)
set the job ID
OSoLReader * osolreader
we may need to parse an OSoL file if there is suffix information indicated in the AMPL nl content
OSInstance * osinstance
osinstance is a pointer to the OSInstance object that gets created from the information in the nl fil...
bool readNl(std::string stub)
read the nl file
OSnl2OS(ASL *cw, ASL *rw, ASL *asl)
alternate constructor which does not allocate the ASL structs
bool createOSObjects()
create an OSInstance and OSOption representation from the AMPL nl content (Some of the information in...
std::vector< double > operand
OSOption * osoption
osoption is a pointer to the OSOption object that gets created from the information in the nl file (a...
void setIBVar(OSInstance *osinstance, int lower, int upper)
special version of the previous method because AMPL makes no distinction between integer and binary v...
ASL * getASL(std::string name)
return a pointer to an ASL object
std::string osol
osol is a string containing the content of the OS option file (it may be empty if no option file was ...
void setOsol(std::string osol)
set the osol string
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 constructor
void setVar(OSInstance *osinstance, int lower, int upper, char vartype)
store a number of variables into an OSInstance object
Used to read an OSoL string.
OS_AMPL_SUFFIX_DIRECTION direction
OS_AMPL_SUFFIX_SCOPE scope