This is for a model in gams,
I have a binary variable (B(N)) and a real variable (u(N)), where N is a set. I want the binary variable to equal zero when u is zero, and to equal one when u isn't zero.
This would be easy if I could use 'if' statements but I can't use them in the model equations, so it needs to be done with math logic...