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.
댓글 수: 1
Milan Milinkovic
2016년 6월 10일
채택된 답변
추가 답변 (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!