If you have a huge number of simple defined variables, like
var y {i in I, j in J, k in K, l in L} = a[i,j,k,l] * x[i,j,k,l];
then your best approach may be to substitute these variables out of the problem "by hand". But not all situations are so clear-cut. Usually it is best to make some experiments rather than rely on assumptions about what will be efficient. Setting "option times 1;" will show the time and memory use in each phase of the model translation.
Bob Fourer
am...@googlegroups.com
=======