DESIGN AND MANAGEMENT OF A DISTRIBUTED HYBRID ENERGY SYSTEM THROUGH