I've defined my objective function and now i need to fix the upper and lower bounds using this constraint [(0 ≤ α1 ≤ α2 ≤ · · · ≤ αN ≤ π/2)] but i'm not getting an idea how to do this. can anyone please give me an idea how to fix this? can I write in this way
x0=[0.5 0.5 0.5 0.5];lb=[0 23.5 33 40];ub=[23.5 33 40 90];x=fminbnd(@switch_angle,(x(1)-0.02)^2+(x(3))^2+(x(5)^2+(x(7))^2+(x(9))^2,x0,[],[],[],[],lb,ub);
Thanks in advance
Thanks for ur answer. then how can i define that constraint? can i use fmincon as you said? but how to define this constraint using fmincon? can any1 help me pls………?
Best Answer