energy source optimization