An affine arithmetic approach for microgrid dispatch with variable generation and load