I am using Mixed Integer GA optimization toolbox for my model that has many variables e.g. x1,x2,x3,…………..,x300.
I need to put them into a vectorized form e.g. x(:,1).*x(:,101) .*x(:,201) + x(:,2).*(:,102).*x(:,202) + ………+x(:,100).*x(:,200).*x(:,300)
So that is challenging for me to write this objective function. It should have a way to achieve it by iterative or other methods, any suggestion please.
Best Answer