Optimal sizing and energy management of a microgrid: A joint MILP approach for minimization of energy cost and carbon emission | Synapse