Consensus-Based Distributed Control For Economic Dispatch Problem With Comprehensive Constraints In A Smart Grid