Optimization Toolbox - Sorted Variables
Afficher commentaires plus anciens
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.
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Get Started with Optimization Toolbox dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!