Here is the constraint:
$$\text{Pa} + \text{Pb}=a + b \sqrt{\text{Ir}^2 +\text{Ii}^2} + c (\text{Ir}^2 +\text{Ii}^2)$$
Here $\text{Pa}, \text{Pb}, \text{Ir},$ and $\text{Ii}$ are variables. $a, b, c$ are given parameters.
$\text{Pa} >0$, $\text{Pb}>0$, $-\text{Imax} \leq \text{Ir} \leq \text{Imax}$, and $-\text{Imax} \leq \text{Ii} \leq \text{Imax}$