OSiLParserData.cpp
Go to the documentation of this file.
1 /* $Id: OSiLParserData.cpp 5284 2017-12-08 13:52:50Z stefan $ */
15 #include "OSiLParserData.h"
16 #include <iostream>
17 
18 using namespace std;
19 
21 {
22 #if 0
23  // clear the vectors of pointers
24  nlNodeVec.clear();
25  //delete nlNodeVec.back();
26  sumVec.clear();
27  maxVec.clear();
28  productVec.clear();
29  minVec.clear();
30  allDiffVec.clear();
31  if (m_miVarStageInfo != NULL)
32  delete []m_miVarStageInfo;
33  m_miVarStageInfo = NULL;
34  if (m_miConStageInfo != NULL)
35  delete []m_miConStageInfo;
36  m_miConStageInfo = NULL;
37  if (m_miObjStageInfo != NULL)
38  delete []m_miObjStageInfo;
39  m_miObjStageInfo = NULL;
40 #endif
41 }//~OSiLParserData
42 
43 
45  osillineno(0),
46  qtermcount(0),
47  qtermidxOneattON(false),
48  qtermidxTwoattON(false),
49  qtermidxattON(false),
50  qtermidattON(false),
51  qtermcoefattON(false),
52 // nlnodecount(0),
53 // tmpnlcount(0),
54 // numbertypeattON(false),
55 // numbervalueattON(false),
56 // numberidattON(false),
57 // variableidxattON(false),
58 // variablecoefattON(false),
59  timeDomainStages(false),
60  timeDomainInterval(false),
61  stagecount(0),
62  stagenameON(false),
63  stagename(""),
64  stageVariablesON(false),
65  stageConstraintsON(false),
66  stageObjectivesON(false),
67  stageVariablesOrdered(false),
68  stageConstraintsOrdered(false),
69  stageObjectivesOrdered(false),
70  stageVariableStartIdx(0),
71  stageConstraintStartIdx(0),
72  stageObjectiveStartIdx(0),
73  stagevarcount(0),
74  stageconcount(0),
75  stageobjcount(0),
76  nvarcovered(0),
77  nconcovered(0),
78  intervalhorizonON(false),
79  intervalhorizon(0.0),
80  intervalstartON(false),
81  intervalstart(0.0),
82 
83  numberOfMatricesPresent(false),
84  numberOfMatrices(0),
85  numberOfConesPresent(false),
86  numberOfCones(0),
87  numberOfRowsPresent(false),
88  numberOfRows(0),
89  numberOfColumnsPresent(false),
90  numberOfColumns(0),
91  numberOfEl(0),
92  numberOf(0),
93  namePresent(false),
94  name(""),
95  referenceMatrixIdxPresent(false),
96  referenceMatrixIdx(-1),
97  normScaleFactorPresent(false),
98  normScaleFactor(1.0),
99  distortionMatrixPresent(false),
100  distortionMatrix(-1),
101  axisDirectionPresent(false),
102  axisDirection(-1),
103  firstAxisDirectionPresent(false),
104  firstAxisDirection(-1),
105  secondAxisDirectionPresent(false),
106  secondAxisDirection(-1),
107  semidefinitenessPresent(false),
108  semidefiniteness(""),
109 
110  numberOfMatrixVar(-1),
111  numberOfMatrixObj(-1),
112  numberOfMatrixCon(-1),
113  numberOfMatrixTerms(-1),
114  numberOfMatrixExpr(-1),
115 
116  numberOfMatrixTermsPresent(false),
117  matrixIdxPresent(false),
118  lbMatrixIdxPresent(false),
119  lbConeIdxPresent(false),
120  ubMatrixIdxPresent(false),
121  ubConeIdxPresent(false),
122  orderConeIdxPresent(false),
123  templateMatrixIdxPresent(false),
124  constantMatrixIdxPresent(false),
125  varReferenceMatrixIdxPresent(false),
126  objReferenceMatrixIdxPresent(false),
127  conReferenceMatrixIdxPresent(false),
128  varTypePresent(false),
129 
130  matrixIdx(-1),
131  lbMatrixIdx(-1),
132  lbConeIdx(-1),
133  ubMatrixIdx(-1),
134  ubConeIdx(-1),
135  orderConeIdx(-1),
136  templateMatrixIdx(-1),
137  constantMatrixIdx(-1),
138  varReferenceMatrixIdx(-1),
139  objReferenceMatrixIdx(-1),
140  conReferenceMatrixIdx(-1),
141  varType('C'),
142 
143  shapePresent(false),
144  shape(""),
145 
146  matrixTermInObj(false),
147 
148  kounter(0),
149  kount2(0),
150  tempVal(0.0),
151  ignoreDataAfterErrors(false),
152  suppressFurtherErrorMessages(false),
153  parser_errors("")
154 {
155  m_miVarStageInfo = NULL;
156  m_miConStageInfo = NULL;
157  m_miObjStageInfo = NULL;
158 
159 }//OSiLParserData
~OSiLParserData()
the OSiLParserData class destructor
int * m_miVarStageInfo
m_miVarStageInfo is an array that for each variable gives the stage to which it belongs.
int * m_miConStageInfo
m_miConStageInfo is an array that for each constraint gives the stage to which it belongs...
OSiLParserData()
the OSiLParserData class constructor
int * m_miObjStageInfo
m_miObjStageInfo is an array that for each objective gives the stage to which it belongs.