How to express x*log(1+A/x)?

I‘m wondering how to express x*log(1+A/x) in cvx where A is a constant?Thank you!

If you do little search in this list you should find the answer.

It’s not that easy to search for particular expressions on this forum, so I will provide the formulation. -rel_entr(x,x+A) .

Searching would work if y were used instead of A.

2 Likes