Integrating livestock into agroforestry systems, including herd management and optimization of grazing lands.