Hello, everyone! How can I express I2 ?

`Constraint: I1 - I2-r0>=C0`

`r0 and C0 are both real value. sk(1,N) is variable.`

for i=1:N

a(i)=sum_square(y-w(:,i))

end

I1= -sum(a);

Thank you for your attention very much!

Hello, everyone! How can I express I2 ?

`Constraint: I1 - I2-r0>=C0`

`r0 and C0 are both real value. sk(1,N) is variable.`

for i=1:N

a(i)=sum_square(y-w(:,i))

end

I1= -sum(a);

Thank you for your attention very much!

Yes, I have deduced Log-sum-inv. But it is complicated， is there a simpler expression ?

The two formulations I know of are provided in section 5.2.7 Log-sum-inv of https://docs.mosek.com/modeling-cookbook/expo.html#modeling-with-the-exponential-cone

That’s all right, thank you Mark!

@Shuzhen Sorry for bothering. May I know how you express your formula later? I have the same formula but can’t express it. Thanks.

@Ben Have you read How to express log(1+ sum ( 1./x ) ) in CVX? - #2 by Mark_L_Stone and the Mosek Modeling Cookbook section on log-sum-inv to which it refers?

if that doesn’t suffice, please show your mathematical problem formulation, and indicate what you are having trouble with,

I have tried to express it with Log_sum_inv, but I don’t know if it is right as we not do the work latter.

```
variable yi(1,K)
variable sk(1,K)
for i=1:8
skk(i)=power(norm(y_f-w(:,i)),2)+2*(y_f-w(:,i))'*(y-y_f)+H_U^2;
end
for i=1:K
if a_f(i)==1
xi(i)=1/roll;
xi(i)>=exp(yi(i));
for i=1:K
ex=ex+exp(yi(i));
end
for k=1:K
if(k~=i)
(H_U^2+sk(i))/(beta_1*pii_f(k))>=exp(-yi(k));
end
end
c>=log(ex);
end
sk(i)<=skk(i);
end
```

You should use `log_sum_exp`