Optimization scheme for coastal morphodynamic model