Contextual Constrained Learning for Dose-Finding Clinical Trials