Hi, I did this optimization by means of the gamultiobj function, but, the output argument, does not give me any information of the number of generations or iterations of the algorithm.
I have tried several methods, but none of them gives me this information, does anyone have any idea how to know this information?
filename = 'Returns.xlsx';
data = readmatrix(filename);
fcn = @(w)MultipleMax(w,mu,sigma);
[w,fval,exitflag,output,population,scores] = gamultiobj(fcn, nAssets, A, b, Aeq, beq);
warning('could not find any solution')
Risk=sqrt(sum( (w*sigma).*w ,2));
T=table(Risk,Ret,w,'Var',{'Risk', 'Ret','Pesos'})
function f = MultipleMax(w,mu,sigma)
f(2) = (sqrt(w*sigma*w'));