Retrospective optimization of well controls under uncertainty using kernel clustering