In my previous post, I motivated a web application that would allow small-scale sustainable meat producers to sell directly to consumers using a meat share approach, using constrained optimization techniques to maximize utility for everyone involved. In this post, I’ll walk through some R code that I wrote to demonstrate the technique on a small scale. Although the problem is set up in R, the actual mathematical optimization is done by Symphony, an open-source mixed-integer solver that’s ...