Originally posted by: David0424
Hi everyone
I am using the .net API of CPLEX12.6.0, and I am working on a very big model.
I am getting some trouble with run time issue on creating high dimension variables.
For example, I create xijkst variable which have 5 dimensions, and the program will have the long run time when initialize the x variables. The size of index: i = 130 , j = 130, k = 30 , s = 110 , t = 110
Is there anyway to solve the run time issue? or there have another way to initialize the high dimensions variable?
Thanks a lot.
My code is as follow:
______________________________________________________________________
INumVar [][][][][] X_ ijkst = new INumVar [i.Length][][][][][];
for (int i = 0; i < i.Length; i++)
{
x[i] = new INumVar[j.Lenght][][][];
for (int j = 0; j < j.Length; j++)
{
x[i][j] = new INumVar[k.Length][][];
for (int s = 0; s < s.Length; l++)
{
x[i][j][k] = new INumVar[s.Length][];
for (int t = 0; t < t.Length; t++)
{
x[i][j][k][s] = cplex.IntVarArray(Num_Shift, 0, 1);
}
}
}
}
______________________________________________________________________________
#DecisionOptimization#MathematicalProgramming-General