Originally posted by: SystemAdmin
[billdoors said:]
hi, Thanks for reading.
what is wrong with this way of defining this 3 dimension variable matrix "yijr" shown below? Thank you.
typedef IloArray<IloNumVarArray> NumVarMatrix;
typedef IloArray<NumVarMatrix> NumVar3Matrix;
... ...
NumVar3Matrix yijr(env,nbLocations);
for (i=0;i<nbLocations;i++)<br /> {yijr[ i ]=NumVarMatrix(env,nbClients);
for (r=0;r<P;r++)yijr[ i][r]=IloNumVarArray(env,P,0,1,ILOINT);<br /> }
#DecisionOptimization#MathematicalProgramming-General