Dear researchers, could you please help me with my question?

I would like to know how I can run multiple optimizations in one program...?

All the optimizations are the same in terms of variables, parameters, and sets but with different input data. The input data are being read from some mxn matrices. The number of optimizations is m. The output of each optimization is supposed to be returned in an mx1 matrix and the variables in some mxn matrices. Therefore, I wrote the objective function equation like this:

obj(m).. cost(m) =e= sum(n, f(m,n)) ;

However, it doesn't work and returns this error:

148 Dimension different - The symbol is referenced with more/less indices as declared

I even tried loop but it didn't work.

Any solution is appreciated. Thanks in advance.

More Hooman Firoozi's questions See All
Similar questions and discussions