Text this: Short-term optimal energy management in stand-alone microgrid with battery energy storage