An Optimization Model for Technology Adoption of Marginalized Smallholders