Originally posted by: SystemAdmin
Maybe it is just bad formatting but it looks to me as if you did not initialize the second dimension of your array. Does this work
int pc, mc, plc;
INumVar[][][] vProd = new INumVar[pc][][];
for (i = 0; i < pc; i++)
{
vProd[i] = new INumVar[mc][]; // This line is not in your original code.
for (j = 0; j < mc; j++)
{
vProd[i][j] = cplex.NumVarArray(plc,0.0,System.Double.MaxValue);
}
}
#CPLEXOptimizers#DecisionOptimization