Joint rank and positive semidefinite constrained optimization for projection matrix