Before running the scripts in this repository:
- Pre-install dependencies in MATLAB:
- Mosek for MATLAB: https://www.mosek.com/downloads/
- msspoly (via SPOTless): https://github.com/spot-toolbox/spotless
- Precompile the
sos_sdp_conversionpackage by runningsparse_sdp_relax_install.min MATLAB. - If installation of
sos_sdp_conversionfails, setif_sos_sdp_conversion = falsein the scripts, and the code will automatically load pre-generated moment cone data from theconstraintfolder. Affected scripts:test_point_evaluation.m,test_verify_extremity.m,main_phase_transition.m.
- For the simplest usage, run
test_point_evaluation.m. In this script:
-
nis the variable number$n$ in the paper. -
kappais the relaxation order$d$ in the paper. -
point_evaluation_numis$s$ in the paper.
- To reproduce the paper's phase-transition results, run
main_phase_transition.m. Warning: this experiment may take a very long time. -
test_verify_extremity.mhelp to verify the extremity of an element in a spectrahedral cone. -
recover_phase_transition.mplots$e_w$ and$e_z$ in the paper. -
-
plot_phase_transition.mplots scatters in the paper.
-















