minimization method can be chosen dynamically