How to optimize (minimize) a Vector function
显示 更早的评论
I need to minimize a vector function at all points of x f(x) = a+b*x+c*x^2+d*x^3. The values of a,b,c,d has to be optimized for the same. Is their any algorithm in matlab that can do the same? I used gamultiobj algorithm for the same, but it generated a large number of these values for each pareto point. I just need a single set of value for the same.
采纳的回答
更多回答(5 个)
deboshree roy
2016-3-30
0 个投票
2 个评论
Torsten
2016-3-30
Say you have a=b=c=d=1 and x(1)=1 and x(2)=2.
Now what do you mean by
However, the value of a,b,c,d parameters has to be changed, such that I obtain a f(x) value that is minimum at all x.
Best wishes
Torsten.
Walter Roberson
2016-3-31
fminsearch is for vector functions not just scalar. The function has to take one parameter but it is expected to be a vector.
deboshree roy
2016-3-30
0 个投票
2 个评论
Torsten
2016-3-30
I don't understand.
Change a to -Inf, b,c and d to 0. Then a minimum value for all x is reached, namely f(x)=-Infinity.
Best wishes
Torsten.
Walter Roberson
2016-3-31
Your function takes a vector x. You want the minimum f(x) for all x. So you are trying to minimize all members of the vector simultaneously. How do you want to account for the fact that the parameters a b c d that give you the minimum f(x(1)) might give you a larger f(x(2))? If you have two possible sets of a b c d, how do you decide which of the two is better over the entire vector?
Did I see you mention Pareto?
deboshree roy
2016-3-30
0 个投票
2 个评论
deboshree roy
2016-3-30
Torsten
2016-3-30
Could you post the objective you are using ?
Best wishes
Torsten.
deboshree roy
2016-3-30
编辑:Walter Roberson
2016-4-5
3 个评论
Torsten
2016-3-30
So your f is a vector of the form
f=[cos(t(1)/T+phi(1))+cos(3*t(1)/T+phi(2))+...+cos(19*t(1)/T+phi(10));
cos(t(2)/T+phi(1))+cos(3*t(2)/T+phi(2))+...+cos(19*t(2)/T+phi(10));
...
cos(t(n)/T+phi(1))+cos(3*t(n)/T+phi(2))+...+cos(19*t(n)/T+phi(10))]
And what's your aim now ? Determine phi such that the maximum of the vector components is minimized ?
Best wishes
Torsten.
Torsten
2016-3-30
Then use fminimax from the optimization toolbox.
Best wishes
Torsten.
deboshree roy
2016-3-30
类别
在 帮助中心 和 File Exchange 中查找有关 Choose a Solver 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!