I have following problem:
$c_i = 1$ if $X + \sum_j^N G_j = T$ else $c_i = 0$
Also there is another constraint which upper bounds equation $X + \sum_j^N G_j \le T$.
$c_i$ is binary
$X, T$ are constant
$G_j$ is continuous.
My attempt:
\begin{align}c_i &\ge 1 - M\left(X + \sum_j^N G_j -T\right)\\c_i &\le 1 + M \left(X + \sum_j^N G_j -T\right)\end{align}
This enforces the binary variable to get value $1$. For $0$, I reduced $T$ to $T-\delta$, where $\delta$ is a very small value
$$c_i \le X + \sum_j^N G_j - (T - \delta) \text{ (This is where I need help for $c_i = 0$)}.$$
Since my objective function is $\max\sum_i c_i$, it is necessary for zero condition of $c_i$ to be tight.