maxscore_PEM function

Function to calculate maximal score value (PMAX) of possible project scenarios.