gmv_opt function

GMV/QU QP Optimization