Optimizing with X as a vector
显示 更早的评论
Hi guys,
I'm relatively new to all of this and I have to do an important project for the University. In more details, I have to solve an optimization problem. The task is to find the vector hRs=[hRs.element1;hRs.element2] whick minimize the function error_hrs2. In addition there is a constraint which is hRs' * [h1.Price; h2.Price] <= KI_Put_Price.
My main problem is that I don't know how to use fmincon to minimize a vector. I have attached the scripts. I would appreciate if someone help with my project.
回答(1 个)
Alan Weiss
2017-6-29
0 个投票
You cannot minimize a vector-valued function. You can only minimize a scalar-valued function.
You can minimize the norm of a vector-valued function, or the sum of squares of its components. You can find a Pareto set for a vector-valued function, as in Multiobjective Optimization. But it is meaningless to ask for the minimum of a vector-valued function.
Alan Weiss
MATLAB mathematical toolbox documentation
类别
在 帮助中心 和 File Exchange 中查找有关 Multiobjective Optimization 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!