I want to iterate over numbered variables (say x1 to x10). For example:
x4=spo.minimize(Agt4,1,method="BFGS").x
x5=spo.minimize(Agt5,1,method="BFGS").x
x6=spo.minimize(Agt6,1,method="BFGS").x
I have over 100 variables like x and Agt. Is there a way to loop over the variables? I don't want to write the code for 100 x and Agt values.