This document summarizes a study that used linear programming to model trade-offs between biomass use for livestock and maintaining soil cover in cropping systems in Madagascar. The model, called GANESH, optimized total farm income based on 21 variables and 32 equations related to crops, livestock, farm structure, and external factors like markets. Simulation results showed that increasing herd size reduced the area under conservation agriculture practices and increased financial losses if milk market demand was limited. Maintaining high soil cover reduced flexibility in biomass removal for livestock. The study demonstrated how linear programming can account for interactions between conservation agriculture and livestock husbandry at farm level.