22#include "OSInstance.h"
102 ASL*
getASL(std::string name);
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
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
ASL * cw
Pointers to AMPL data structures.
ASL * getASL(std::string name)
return a pointer to an ASL object
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
bool createOSObjects()
create an OSInstance and OSOption representation from the AMPL nl content (Some of the information in...
std::vector< double > operand
ograd * og
og is a pointer to the AMPL data structure holding the objective function coefficients
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...
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
std::string stub
stub is the name of the file with the nl instance
OSnLNode * walkTree(expr *e)
parse an nl tree structure holding a nonlinear expression
Used to read an OSoL string.
OS_AMPL_SUFFIX_DIRECTION direction
OS_AMPL_SUFFIX_SCOPE scope