A Mixed Integer Linear Formulation for Microgrid Economic Scheduling