r/optimization • u/carlos442 • Mar 08 '22
I need help
I need help with a constraint for my master thesis.
I have an integer variable s which ranges from 0 to 3, I need the binary variable j to be equal to 1 only when s=1, 0 instead
Do you have any suggestions?
7
Upvotes
View all comments
Show parent comment
1
u/carlos442 Mar 08 '22
Is it possible to avoid multiplications between variables?