h_next_best_eligible_doses: Get Eligible Doses from the Dose Grid.
Description
Helper function that gets the eligible doses from the dose grid.
The eligible doses are the doses which do not exceed a given
doselimit. For placebo design, if safety allows (i.e. if there is at least
one non-placebo dose which does not exceed the dose limit), the placebo dose
is then excluded from the eligible doses.