I have constraint that reads like this

a^T \left( x \odot \left( \exp\left(\beta y \oslash x \right) - 1 \right) \right) - c \leq 0.

How should I add this constraint in the CVX DCP ruleset?

%MY CVX code

n = 5;

a = rand(n,1);

beta = rand;

T = n;

Pmax = 20;

cvx_begin

variables x(n) y(n)

minimize -sum_log ( x );

subject to

ones(1,n) * y == T;

a’ * ( y .* ( exp(beta* x./y) - 1 ) - T * Pmax <= 0;

cvx_end

% ---------------------

% Problem with: a’ * ( y .* ( exp(beta* x./y) - 1 ) - T * Pmax <= 0;

Is my below attempt to solve the problem correct?

cvx_begin

variables x(n) y(n)

minimize -sum_log( x );

subject to

ones(1,n) * y == T;

```
for ii = 1:n
x1 = beta * x(ii);
y2 = y(ii);
z2 = y(ii) + ((T * Pmax)/(n * a(ii)));
{x1,y1,z1} == exponential;
end
```

cvx_end