Optimal Constrained Candidate Selection for Opportunistic Routing