Achievable LPP algorithm code