An optimality-based model of the coupled soil moisture and root dynamics | Synapse