How do I get each row maximun value(or second maximun) after a Mvar object matrix product a constant matrix
Hi, I currently woking on a problem, where X is an M*N Mvar object with all elements are binary, B is a constant matrix with shape M * 720, and C is also a constant matrix with shape 1*N.
By using Python numpy library, my objective can be expressed with the code like below:
`min C@np.max(X.T@B, axis=1)`
Note: X.T means the transpose of Mvar object. @ means matrix product.
My question is how can i express this objective by using gurobipy, or more further how can i get the second maximun even third maximun value each row of the product X.T@B with gurobi.
Any help would be much appreciated !
0
-
Official comment
This post is more than three 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 why not try our AI Gurobot?.
Post is closed for comments.
Comments
1 comment