write the relation between two deision variables
OngoingI would like to write the constraints between two continuous decision variable x(m) and y(n)
x(m) is equal to the value of column in y(i,j) which is nonzero
i.e. y=[1,1,0,0,1] and x could be one of [1,2,5]
I wonder if this relation could be written in linearization type or
if there some ways to transform this constraints into gurobi language ?
( I use matlab In fact, there is a function in matlab called "find"
but I could not figure out how to use it since matrix A is still can not be written)
thanks a lot !
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?. -
Hi Ray,
I am not completely sure, what you are looking for but maybe writing an LP file can help. You can use the grb_write function to do this.
Cheers,
Matthias0
Post is closed for comments.
Comments
2 comments