Per How to implement this function using cvx?, you can express
a*log(1+p/a) as -rel_entr(a,a+p)
In your case, you can move (1-T) inside the sum and have that be your “a”, and g. * E be your “p”. No guarantee that I haven’t made a mistake though, but this should get you on the only path with promise.