Lexicographic constraint
AnsweredI have coordinates (x,y) of size n. Here x ,y coordinates are decision variables
I am trying strict lexicographical ordering (x1,y1) > lex (x2,y2) i.e. x1>x2 or if x1=x2 then y1>y2.
This is logical constraint if x1>x2 is true then no need to add this constraint x1=x2 then y1>y2
Just guide me how to achieve this mathematical form
0
-
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. -
The Knowledge Base article How do I model conditional statements in Gurobi? should be helpful.
0
Post is closed for comments.
Comments
2 comments