Go to the documentation of this file.
14 #ifndef OSILPARSERDATA_H
15 #define OSILPARSERDATA_H
double intervalstart
intervalstart holds the value for the start of the planning horizon
~OSiLParserData()
the OSiLParserData class destructor
bool intervalhorizonON
intervalhorizonON is true if we have found a horizon for the time interval
int stageObjectiveStartIdx
bool qtermidxTwoattON
qtermidxTwoattON is true if we have found the second index of the quadratic term
bool ignoreDataAfterErrors
if the parser finds invalid text it is held here and we delete if the file was not valid
int * m_miObjStageInfo
m_miObjStageInfo is an array that for each objective gives the stage to which it belongs.
int osillineno
if there is a parser error, osillineno holds the line number in the OSiL file where the error occured...
int qtermcount
These variables are used for processing the <quadraticCoefficients> element.
bool suppressFurtherErrorMessages
int stageVariableStartIdx
...we need to track the first variable, constraint, objective...
std::string semidefiniteness
int * m_miConStageInfo
m_miConStageInfo is an array that for each constraint gives the stage to which it belongs.
bool firstAxisDirectionPresent
bool varReferenceMatrixIdxPresent
bool stagenameON
stagenameON is true if the current stage was given a name
OSiLParserData()
the OSiLParserData class constructor
bool numberOfColumnsPresent
double intervalhorizon
intervalhorizon holds the value of the end of the planning horizon
bool qtermidxattON
qtermidxattON is true if we have found the row index of the of a quadratic term
bool stageConstraintsOrdered
bool constantMatrixIdxPresent
int conReferenceMatrixIdx
bool stageObjectivesOrdered
bool conReferenceMatrixIdxPresent
bool numberOfConesPresent
bool timeDomainStages
These variables are used to parse the <timeDomain> element.
int stagecount
store the number of stages
bool templateMatrixIdxPresent
int objReferenceMatrixIdx
bool numberOfMatrixTermsPresent
std::string parser_errors
used to accumulate error message so the parser does not die on the first error encountered
bool axisDirectionPresent
int stagevarcount
...and we need to track the number of variables we have seen
bool semidefinitenessPresent
bool referenceMatrixIdxPresent
bool qtermcoefattON
qtermcoefattON is true if we have found the coefficient of the quadratic term
int varReferenceMatrixIdx
int nvarcovered
these two integers track how many variables and constraints have been assigned to a stage; this is us...
The OSiLParserData Class, used to store parser data.
bool qtermidxOneattON
qtermidxOneattON is true if we have found the first index of the quadratic term
std::string stagename
store the name of the current stage
bool normScaleFactorPresent
void * scanner
scanner is used to store data in a reentrant lexer we use this to pass an OSiLParserData object to th...
bool stageVariablesOrdered
...we need to track whether the variables, constraints, objectives are given in temporal order....
bool qtermidattON
qtermidattON is true if we have found the id of the quadratic term
int * m_miVarStageInfo
m_miVarStageInfo is an array that for each variable gives the stage to which it belongs.
bool intervalstartON
intervalstartON is true if we have found a start time for the time interval
bool objReferenceMatrixIdxPresent
bool stageVariablesON
for each stage we need to track whether the <variables>, <constraints>, <objectives> elements are pre...
bool secondAxisDirectionPresent
bool numberOfMatricesPresent
some elements to hold matrices and cones
bool distortionMatrixPresent
This file defines the OSnLNode class along with its derived classes.
int stageConstraintStartIdx