This seems like a general constrained optimisation function. Since you have already formulated your objective function, you could just use fmincon(), from the Optimisation Toolbox. Take a look at http://www.mathworks.nl/help/toolbox/optim/ug/fmincon.html to see if it will fit your needs.
Minimizing the Maximum Value of an Array
6 次查看(过去 30 天)
显示 更早的评论
Hi All,
I am working on a optimization problem. I am trying minimize the highest value of the sum of two arrays P and X. P is a vector filled with data. X is the variables to be added to the elements of P and the elements of X can be positive or negative. I am using X to "shave the peaks and fill the valleys", but there is a set of specific boundaries and conditions to be met which prevents X from simply adding and subtracting off the average of P. I can't seem to find a way to solve this without using a max() function and because it is non-algebraic it causes many problems in the regular optimization algorithms. This is a problem with local/global minimum problems. Has anyone had experience with minimizing the peaks and extrema?
0 个评论
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Get Started with Optimization Toolbox 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!