() Input: , , , , ;
() solve SDP problem by IPM;
() if    then
()   ;
()   ;
() else
()   calculate EVD: ;
()   for   to   do
()    generate candidates ;
()  solve MMPC problem to obtain ;
() end
() choose
       ;
() end
() Output: .
Algorithm 2: Frequency-domain algorithm.