Notation:
I have an optimisation problem with objective function: \begin{align}\max&\quad\sum_n Q_n\\\text{s.t.}&\quad Q_n=x_{ij}^{nk}(y_i^{nk}-c_n), \forall n \in N, k \in K, (i,j) \in P.\end{align} Decision variables $x$ are binary, $y$ is continuous and non-negative, and $c$ is a constant.
Problem:
I wish to linearize this objective function. A product term $xy$ of a binary and continuous variable may be replaced by $z$ and some additional constraints as is mentioned here. The example provided is about a standalone product term. Is this approach still valid in a summation?
Assuming it is, I have split the two terms within the sum: $$\sum_n Q_n = \sum_n x_{ij}^{nk}y_i^{nk} - \sum_n x_{ij}^{nk}c_n$$
Then I applied the approach cited above only to replace product in the first sum with $$z_n=x_{ij}^{nk}y_i^{nk}, \forall n \in N, k \in K, (i,j) \in P$$ and adding four inequalities of the Big-M method:
\begin{alignat}2z_n &\geq y_i^{nk}-(1-x_{ij}^{nk})M,\quad &\forall n \in N, \in K, (i,j) \in P\\z_n &\leq Mx_{ij}^{nk}, &\forall n \in N, \in K, (i,j) \in P\\z_n &\leq y_i^{nk}, &\forall n \in N, \in K, (i,j) \in P\\z_n &\geq 0\end{alignat}
Is it valid to approach the split terms separately, and substitute $z$ back into the objective function?
$$ \sum_n Q_n = \sum_n z_n - \sum_n x_{ij}^{nk}c_n = \sum_n( z_n - x_{ij}^{kn}c_n), k \in K, (i,j) \in P $$
Or do I somehow need to take the $x_{ij}^{nk}c_n$ term in $Q$ also into account when linearizing?