Hello everyone;

I am trying to apply logarithmic function and exponential as a constraint, but CVX give me some errors.

My trials and errors are given below

exp(r(i,j)) <= 1000 + (M2* (1-U(j,i))); ==>“Unrecognized function or variable ‘last_act’.”

log(r(i,j)) <= 1000 + (M2* (1-U(j,i))); ==> “Illegal operation: log( {convex} )” (On CVX document, they stated that log function is used with concave )

exp(log(10)*r(i,j)) <= 1000 + (M2* (1-U(j,i))); ==>“Unrecognized function or variable ‘last_act’.”

My main purpose is to implement :

*k is constant like 2,3,4…

*r(i,j) is calculated like a distance r(i,j)= norm()

***log10(r(i,j)^k) + r(i,j) <= const. **

** or **

***r(i,j)^k * 10^ r(i,j) <= const.**

Thank you