An effective algorithm for maed problems with a new reliability model at the microgrid