I am maximizing a function for the form: -1*power(log(1+x),2)
log(1+x) is concave
-1*power(expression,2) is concave
So it should work
But CVXPY looks at -1*power(expression,2), ignores the negative, labels it as convex, and says it’s not DCP compliant.
Any workarounds?
This is a forum about CVX in Matlab and not CVXPY.
However the DCP rules are the same for both. And a quick look at the plot will immediately tell you that the function
(\log(1+x))^2
is neither convex nor concave.
Erling
(Erling D.Andersen)
3
Reference for the fact Michal states see: