Common functions used throughout AgMIP modeling exercises.