optimize_pi_ratings
library
(piratings)