This work introduces a novel methodology for online dynamic control of charging and discharging a storage system that includes battery and fuel cell in a solar-wind microgrid system using an integrated fuzzy logic- meta-heuristic optimization technique.