Rayleigh quotient optimization

x^*H_1*x=0 and x^H_2*x=0 are non-convex constraints