GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing yalmip.github.io — sort sort overloads sort operator SyntaxExamplesThe following silly example defines a regression problem with the constraint that the sum of the largest value and the smallest value of the decision variable is 1. As usual, we add explicit bound constraints to improve the big-M reformulations. Note that we can solve this particular problem more efficiently by using max and min instead (still a nonconvex problem, but it leads to a model with 10 binary variables, compared to the sort model which leads to 25 binary variables.) CommentsThe operator is implemented using a mixed-integer model. based on big-M approach, hence it is crucial that all involved variables have explicit bound constraints. The integer model for the sort operator is extremely expensive. Sorting a variable of n variables requires n^2 binary variables. Before you use sort, make sure to first check if you can use the convex operators sumk or sumabsk. |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |