Dear experts, I'm a debutant in OR and i whould solve this constraint. If Att_p * Y_s = sum(Y_s) then X_p=1 else X_p=0 Where Att_p, Y_s and X_p are decision variables. (Y_s and X_p are binary variables) I would be grateful, if somebody here could help me to resolve this problem.
asked
lolla |

https://www.or-exchange.org/questions/10267/if-then-constraint

Also, since Att and Y are both variables, https://www.or-exchange.org/questions/10775/how-to-linearize-product-of-binary-integer-and-integer-variables.

Did this is correct (look at \(Y_s\)): \[ ATT_p * Y_s = \sum{Y_s}\] ?