How to write x*log(1+y) in cvx?

# How to write x*log(1+y) in cvx?

**Erling**(Erling D.Andersen) #2

Is that known to be a convex or concave function?

Also since convexity is dependent on how the term appears in the model there is no way we can answer that question.

You may want to take a look at

https://docs.mosek.com/cheatsheets/conic.pdf

btw.

**ashok_b**(ashok b) #3

Hi Erling,

Thank you for the reply. Yes, x*log(1+y) is concave jointly in x and y. I tried to formulate it using rel_entr and entr but could not do it. Can you help me here?

Best regards

Ashok

**Mark_L_Stone**(Mark L. Stone) #4

This in indefinite, i.e., neither convex nor concave. For instance, at x = y = 1, its Hessian has one positive eigenvalue and one negative eigenvalue. Therefore, this can not be handled by CVX.