Optimal Scheduling of Distributed Energy Storage Systems by Means of ACO Algorithm