The orienteering problem: A hybrid control Formulation