A framework for solving mixed-integer semidefinite programs. (4th May 2018)