Text this: A Flexible Tool for Modeling and Optimal Dispatch of Resources in Agri-Energy Hubs