added customized pgs numerical solver