I am trying to generate mxAlgebra expressions from a size variable. I have a variable amount of mx submodels and am trying to add the objectives from these together for a full model objective. I have tried things like
and other various methods. I also tried the method described on
but don't think this will help in my particular situation.