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

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
Please sign in to leave a comment.
Comments
1 comment