Duality methods with an automatic choice of parameters Application to shallow water equations in conservative form | Publicación