3

I tried to use Bertsimas and Sim approach for an uncertain linear model, but the thing is the answer I got for the Bertsimas and Sim linear model when Γ = 2 is different from Soyster model's result, I tried other uncertain models and I got the same result for Bertsimas' while it was completely protected against uncertainty and system model.

The Bertsimas & Sim model: $$max \ P_r+P_n $$ $$\begin{cases} -\alpha_1 P_r + \alpha_2 P_N \le \omega_{12} \\ -\alpha_1 P_r + \alpha_2 P_N \ge \omega_{11} \\ -\alpha_1 P_N + \alpha_2 P_r \le \omega_{22} \\ -\alpha_1 P_N + \alpha_2 P_r \ge \omega_{21} \end{cases} $$ $$\begin{cases}P_r\ge0 \\ P_N\ge 0 \end{cases}$$

Bertsimas & Sims model:

$$max \ P_r+P_n $$ $$\begin{cases} -\alpha_1 P_r + \alpha_2 P_N -\lambda_1 \eta -\mu_1 + \mu_2 \le \omega_{12} \\ -\alpha_1 P_r + \alpha_2 P_N -\lambda_1 \eta -\mu_1 + \mu_2 \ge \omega_{11} \\ -\alpha_1 P_N + \alpha_2 P_r -\lambda_2 \eta -\mu_1 + \mu_2\le \omega_{22} \\ -\alpha_1 P_N + \alpha_2 P_r -\lambda_2 \eta -\mu_1 + \mu_2\ge\omega_{21} \end{cases} $$

$$\begin{cases} \ \lambda_1 +\mu_1 \le \hat{\alpha_1} y_1 \\ \ \lambda_2 +\mu_1 \le \hat{\alpha_1} y_2 \\ \ \lambda_1 -\mu_2 \le -\hat{\alpha_2} y_2 \\ \ \lambda_2 -\mu_2 \le -\hat{\alpha_2} y_1 \\ \end{cases} $$ $$\begin{cases}P_r\ge0 \\ P_N\ge 0 \end{cases}$$ $$ \mu_1, \mu_2, y_1, y_2, \lambda_1, \lambda_ \ge 0 $$

I guess there's a problem with one the - behind $\mu \ or \ \hat{\alpha_2}$ but I don't know what did I wrong

Thanks for your help In forward.

  • The problem is that you start with four constraints and try to do two at the same time. For the $\omega \leq \ldots$ constraints you need to subtract a safety factor, whereas for the $\ldots \leq \omega$ constraints you need to add a safety factor, and you cannot do that in this way. You should process each of the four constraints individually. – LinAlg Aug 27 '20 at 17:23
  • well actually in the gams code I processed 4 constraints individually, I wrote them here together bcs of the space. is there anything else wrong with this model? – Aisa.Imn Aug 27 '20 at 17:29
  • Is the uncertainty on $\alpha_i$? Then I am surprised that $P$ does not appear in the extra constraints. – LinAlg Aug 27 '20 at 17:39
  • yes it's on , it's price elasticity and cross elasticity – Aisa.Imn Aug 27 '20 at 17:41
  • so there's nothing wrong with the negative sign before the $\hat{\alpha_2}$ and $\mu_2$? – Aisa.Imn Aug 27 '20 at 17:43
  • yes, I am afraid this is wrong on many levels...maybe you can show you did one of the constraints – LinAlg Aug 27 '20 at 17:44
  • I'm afraid I didn't understand exactly what you mean, do you mean I should make one of the $\alpha_i$s uncertain parameter and the other certain? is it not possible for both of them to be uncertain at the same time? – Aisa.Imn Aug 27 '20 at 17:48

1 Answers1

2

So you have the constraints:

$$\begin{cases} \omega_{11}\le-\alpha_1 P_r + \alpha_2 P_N \le \omega_{12} \\ \omega_{21}\le-\alpha_1 P_N + \alpha_2 P_r \le \omega_{22} \end{cases} $$ with $\alpha_i \in [\bar{\alpha_i} - \hat{\alpha}_i, \bar{\alpha_i} + \hat{\alpha}_i]$ and at most $\Gamma$ of the $a_i$ can deviate at the same time (per constraint).

Unless I am mistaken, the robust counterpart is:

$$\begin{cases} \omega_{11}\le-\alpha_1 P_r + \alpha_2 P_N - \Gamma||y_1||_\infty - ||\begin{pmatrix}P_r \hat{a}_1 \\ P_N \hat{a}_2\end{pmatrix}-y_1||_1 \\ -\alpha_1 P_r + \alpha_2 P_N + \Gamma||y_2||_\infty + ||\begin{pmatrix}P_r \hat{a}_1 \\ P_N \hat{a}_2\end{pmatrix}-y_2||_1 \le \omega_{12} \\ \omega_{21}\le-\alpha_1 P_N + \alpha_2 P_r - \Gamma||y_3||_\infty - ||\begin{pmatrix}P_r \hat{a}_1 \\ P_N \hat{a}_2\end{pmatrix}-y_3||_1\\ -\alpha_1 P_N + \alpha_2 P_r + \Gamma||y_4||_\infty + ||\begin{pmatrix}P_r \hat{a}_1 \\ P_N \hat{a}_2\end{pmatrix}-y_4||_1 \le \omega_{22} \end{cases} $$ You can linearize the norms with standard reformulations. For example, the first constraint becomes $$\begin{cases} \omega_{11}\le-\alpha_1 P_r + \alpha_2 P_N - \Gamma u_1 - \sum_i v_{1i} \\ u_1 \geq y_{11}, u_1 \geq y_{12} \\ v_{11} \geq P_r\hat{a}_1 - y_{11}, v_{11} \geq -P_r\hat{a}_1 + y_{11} \\ v_{12} \geq P_N\hat{a}_2 - y_{12}, v_{12} \geq -P_N\hat{a}_2 + y_{12} \end{cases} $$ This becomes an absolute mess, which is why we love tools like YALMIP because they can do this for us.

LinAlg
  • 20,093
  • shouldn't it be like $u_1+_1 \ge \hat{\alpha_1}_1$ I used only $_1$ and $_2$ because $\alpha_1$, $\alpha_2$ are the same parameters that we used in different constraints so it would be okay if they use the same protecting factor also thanks for the tool you introduced – Aisa.Imn Aug 27 '20 at 18:10
  • @Aisa.Imn I initially missed the $-y$ part in the final constraints, but now you can see the $v_{11}+y_{11} \geq P_r \hat{a}_1$ which is simlar to what you write in your comment. And yes you can use that $y_1=y_2$, but you still have to add them for the second constraint (instead of subtracting). – LinAlg Aug 27 '20 at 18:17