a note on converting a PSL MPE inference problem to LP and SOCP