Originally posted by: y82li
typedef IloArray<IloNumArray> NumMatrix;
typedef IloArray<NumMatrix> NumMatrix3d;
IloInt nbPart = 3;
IloInt nbPeriod = 4;
IloInt nbSite = 5;
NumMatrix3d lamdabar(env, nbPart);
for(i = 1; i < nbPart; i++)
{
lamda[i] = NumMatrix(env, nbPeriod);
}
for(j = 1; j < nbPeriod; j++)
{
lamda[i][j] = IloNumArray(env, nbSite);
}
lamda[0][0][0] = 5;
lamda[0][0][1] = 8;
......
lamda[2][3][4] = 10;
This code does not work. It looks that the way define multi-dimensional data matrix and multi-dimensional var matrix is different.
I need your help. Thank you!
BTW, what happen to the display resolution of this forum. I see very small font size. Thanks!
#CPLEXOptimizers#DecisionOptimization