Resource allocation optimization problems in the public sector