Minimal solutions to generalized $$\Lambda$$ Λ -semiflows and gradient flows in metric spaces