In optimization problem, I have two constraints for decision variables $x_1$ and $x_2$ as follow
$0 \leq x_1 \leq u_1$ and $0 \leq x_2 \leq u_2$
I was wondering how can I replace these 2 constraints with just one constraint in terms of $x_1,x_2,u_1,u_2$. Hence, the goal is to reduce the number of constraints. I dont care if this results in nonlinear constraints.
If one of the $u_i<0$, there is no solution.
If one of the $u_i=0$, we know $x_i=0$ and you can focus on another constraint.
Assuming $u_1$ and $u_2$ are both positive,
$$0 \leq \frac{x_i}{u_i} \leq 1$$
$$-\frac12 \leq \frac{x_i}{u_i} - \frac12 \leq \frac12$$
$$\left|\frac{x_i}{u_i}-0.5 \right| \leq 0.5$$
$$\max_{i=1,2} \left|\frac{x_i}{u_i}-0.5\right| \leq 0.5$$