fn_lpl function

Linear plateau linear with constrains