I would like to do the optimization of a function that returns me a value(time). The idea is use different values of the inputs (i1,i2,i3,i4)and analyze all the times obtained. The optimal result will be the one that returns lowest time.
function [time]=function1(i1,i2,i3,i4)
How can I do this optimization with the fmincon (or another matlab function) to optimize this process, in order to avoid doing:
for i1=1 to 100 for i2=1 to 100 for i3=1 to 100 for i4=1 to 100 time=function1(i1,i2,i3,i4) […] end end end end
Thank you
Best Answer