Managing risks of market price uncertainty for a microgrid operation