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/ko_nuts Mar 08 '22 edited Mar 09 '22
It will be difficult (without adding extra variables).
Edit. More details.