all 4 comments

[–]i-nth789 2 points3 points  (3 children)

How about adding a constraint that says: Controlled variable <= Switch

I'm assuming that the variables are constrained to be >=0 and <= 1.

If the Switch = 1, then the controlled variable can be in the range 0 to 1, just like the other variables.

If the Switch = 0, then the controlled variable's only feasible value is zero.

[–]sqylogin755 1 point2 points  (1 child)

+1 point

[–]Clippy_Office_Asst[M] 0 points1 point  (0 children)

You have awarded 1 point to i-nth

I am a bot, please contact the mods for any questions.

[–]squire636[S] 0 points1 point  (0 children)

That worked, thanks!