How to formulate rank using R API?
Awaiting user inputI have observations Y_1, Y_2,..., Y_n. Except using indicator function \sum I(Y_k<=Y_i), k = 1,...,n to formulate rank of Y_i, it there any other way to formulate rank in the constraints?
For my specific optimization problem, using indicator functions to formulate rank is to use mixed interger linear programming, and this involves too many decision variables (O(n^2)) when n is large. It runs out of time and I guess Gurobi cannot even converge for some cases. So I'm wondering do we have any computationally efficient way to formulate rank in the constraint?
Thank you!
-
Official comment
This post is more than two years old. Some information may not be up to date. For current information, please check the Gurobi Documentation or Knowledge Base. If you need more help, please create a new post in the community forum, or try Gurobot, our chatbot interface offering instant, expert-level support. -
Hi Zhe,
Can you detail exactly what your definition of a rank constraint is with respect to your variables?
It is not clear from you latex code, which seems to be incomplete.
- Riley0
Post is closed for comments.
Comments
2 comments