Agent-based approach for energy demand-side management