How to write the following additions into MATLAB code that complies with the DCP rules, this problem has been bothering me for a long time, thank you very much for your advice

Have you proven this is a convex optimization problem,?
The 2 to the (variable divided by a different variable) terms look rather suspect.