Hello,
I would like to create arrays as small in size as possible to decrease the number of variables and parameters and, as a result, computation time.
In one of my matrixes, the number of columns depend on the row index... I have the following code in my .mod file:
range J = 1..n_jobs;
range R = 1..n_recipe;
int j0[set1] = [1];
int jIt[set1] = [n_jobs];
range Jit = j0[1]..jIt[1];
int rs[R,0..2] = ...;
int rJ[J] = ...;
dvar float+ t[j in Jit,
i in 1..rs[rJ[j],2]];
where rs and rJ are defined on a .dat file.
I get the following error: Variable indexer size not allowed for a generic array
What am I doing wrong?
This used to work fine in AMPL (I recently switched to OPL)...
Thank you
Sam
------------------------------
Samuele Viaro
------------------------------