LONG TERM OPTIMAL PLANNING OF DISTRIBUTED GENERATIONS AND BATTERY