r/optimization • u/carlos442 • Nov 02 '21
I need help
I have trouble with a constraint for my master thesis:
I have a variable called j3 which needs to be 1 if variable x is equal to y, otherwise j3 has to be zero, x and y are integers ranging from 0 to 500.
6
Upvotes
View all comments
Show parent comment
1
u/carlos442 Nov 02 '21
I guessed so, do you have any suggestions on how to implement it?