implemented the monotonic MPRGP algorithm, test passed.