-2

I want a constraint that: if c=0 become x=0 if c > 0 become x=1 for example: C < = M.X or
C> = M.X or X=exp(-M*C) that X is binary variable and M is huge value. This constraint is very important for me. Please help me.

AminRasi
  • 9
  • 2
  • 3
    If it's so important, you must have tried very hard to find the answer yourself. It would probably save people a lot of time detailing what you tried and why it didn't work, so they didn't have to duplicate your effort. – David Richerby Jun 29 '15 at 12:12
  • 1
  • Binary variables don't work in linear programming; they move you into the domain of integer programming. 2) $\lceil c/(c+1) \rceil$.
  • – Raphael Jun 29 '15 at 12:23