Some convex optimization examples, just upload some previous work, some of the coding (broadcasting, loop, etc) is awful, but I'm too lazy to rewrite these.
For more details about derivation, refer to lovinglavigne.com and contents from EE364A/B.
There's also a home-made SDP solver with AHO direction under jrcvx_sdp. You can see an example by running
python sdp_solver.py
The output looks like