Distributed solar generation code.