reranged the MPRGPP solve function, all  test passed except testComputeLagMultipliers().