Cost Optimal Domestic Electrification CODE