Successive Convex Approximation

Kindly anyone help how to implement this algorithm on matlab. Basically aim is to optimize w (beamforming vector)Screenshot 2021-04-16 122418

It is outside the scope of this forum.