Originally posted by: SystemAdmin
C++ API? You could use built in array Concert array types. I would go with
IloArray<IloArray<IloIntVarArray> > Node = ...
Note the space between the two closing angle brackets, a syntactic necessity since C++ is the devil's tool.
The warehouse.cpp example that comes with CPLEX shows how to build a two-dimensional array of IloNumVar. A three-dimensional array should be an easy extrapolation.
Paul
Mathematicians are like Frenchmen: whenever you say something to them, they translate it into their own language, and at once it is something entirely different. (Goethe)
#CPLEXOptimizers#DecisionOptimization