Originally posted by: CynthiaLi
I guess there may be something wrong with the definition of one of my var within main location.
Here is what I am trying to do:
I defined a tuple in my first optimization model. Then in the main block, I want to add data into this tuple. The tuple OCut is defined as follows:
tuple OCut {
key int id;
float SmallE;
float BigE
VarX;
}
The difficult part is the last component.
I want to define a numerical array Big[n] to save the calculated results, then add the data in the tuple data :
FirstData.OCuts.add(FirstData.OCuts.size,Small,Big);
How shall I define the numerical array Big[n] and set every component to be zero first?
#DecisionOptimization#OPLusingCPLEXOptimizer