Optimization Toolbox - Sorted Variables
显示 更早的评论
Is there any way in multi variable optimization toolbox/app, to prespecify that first k variables should be chosen in an ascending order (x(1)<=x(2)<=...<=x(k); and the rest x(k+1),...,x(n) should be random)?
For example, could I somehow set the current x(1) as x(2)'s lower bound?
I know I could add it to constraints later, but then I would waste too much CPU time, and if I start sorting the variables in the objective function (create a new variable x_sorted = sort(x) and use that variable instead) it would mess up the searching path of the optimization algorithm.
Every bit of help is appreciated. Thanks.
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 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!