Return to Article Details Demand side management in electric vehicles for smart charging and discharging based on state aggregation and q-learning