Learning based cost optimal energy management model for campus microgrid systems