I’m working on an optimization problem and need help with correctly prioritizing the allocation of certain variables in a constraint. The rules are:
- Only one of the variables $y_{t}$, $zn_{t}$ and $z_{t}$ can be non-zero at a time.
- A prioritization rule is applied to the variables $zn_{t}$ and $z_{t}$. The model initially attempts to satisfy the constraint using $zn_{t}$. However, if $zn_{t}$ proves inadequate, the model then resorts to $z_{t}$, requiring $zn_{t}$ to be set to zero.
The variables are defined as:
- $0 \leq x \leq 1$
- All the variables $y_{t}$, $zn_{t}$ and $z_{t}$ are continuous and bounded between 0 and 1.
- We define binary variables $b_{t}$, $bz_{t}$ and $bzn_{t}$ for enforcing some of the constraints.
The heart of this problem lies in the constraint, which is defined as follows: $\begin{align} & C_{t} \left( x - \sum_{j=1}^{t} z_{j} \right) +\sum_{i=2}^{t} CN_{i, t-i+1} \left( y_i - \sum_{j=i}^{t} zn_{j} \right) \nonumber \\ & + S_{t} \cdot z_{t} + SN_{t} \cdot zn_{t} - CO_{t} \cdot y_{t} - E_t = 0 \quad \forall t \end{align}$
Where:
- $CN_{i, t-i+1}$ represents values derived from a specific position, determined at the time $i$ and assessed at the later time $t$.
At $t=1$, we can assume that all variables except $x$ takes zero value or more conveniently define the constraint differently for $t=1$ from $t>1$. For $t=1$, we can define this constraint as: $C_{1} \cdot x - E_{1} = 0$
If $C_{t} \left( x - \sum_{j=1}^{t} z_{j} \right) +\sum_{i=2}^{t} CN_{i, t-i+1} \left( y_i - \sum_{j=i}^{t} zn_{j} \right) \nonumber - E_t < 0$ then $zn_{t}$ or $z_{t}$ must take non-zero value. If it is greater than zero then $y_{t}$ must take take non-zero value. How can I ensure that these prioritization rules are consistently applied within the constraints of my model?
$\textbf{Other Constraints:}$ These enforces some of the rules set out above, except priortisation. These can be ignored for the purpose of the question.
$\begin{alignat}{2} & \sum_{j=i}^{t} zn_{j} && \leq y_i \quad && \forall i \\ & \sum_{j=1}^{t} z_{j} && \leq x \quad && \forall t \\ & y_{t} && \leq b_{t} \quad && \forall t \\ & zn_{t} && \leq bzn_{t} \quad && \forall t \\ & z_{t} && \leq bz_{t} \quad && \forall t \\ & b_{t} + bzn_{t} + bz_{t} && \leq 1 \quad && \forall t \\ \end{alignat}$