Abstractly, the system takes a set of locations and populations, computes a decision metric for each location and connects selected communities to form networks.
You are welcome to browse the source code.
The decision metric is used to decide between different electricity technology options: off-grid photovoltaic panels coupled with a small diesel generator, mini-grid through a large diesel generator and grid through extension of medium voltage line.
The mvMax decision metric is the maximum length of medium voltage line for which grid extension is cheaper than standalone options. It is best understood by example.
Suppose the total cost of installing off-grid technology in a community is $50,000 and mini-grid technology is $40,000 including capital and recurring costs over a time horizon of ten years. Then the cheapest standalone option costs $40,000.
Suppose also that the cost of preparing and maintaining a community for grid connection is $34,000 excluding the cost of the actual grid extension. That means that we have a budget of $6,000 to extend the grid to the community because if the extension cost more than $6,000 it would be more cost-effective to go with a standalone option such as off-grid or mini-grid.
If grid extension costs $10 per meter, then we can convert the budget of $6,000 into 600 meters of extension. That means that if the community is within 600 meters of an existing grid backbone, then it is cost-effective to connect the community to the grid compared to standalone options. The mvMax decision metric for the community is 600 meters.
Computation of mvMax takes five stages:
- Project household demand.
- Project productive demand for powering grain grinders and water pumps. Productive demand is proportional to household count.
- Project social infrastructure demand.
- Project commercial facility count and demand. A commercial facility can be a vendor stall in a marketplace.
- Project educational facility count and demand. An educational facility can be a primary school, secondary school or university.
- Project health facility count and demand. A health facility can be a hospital or clinic.
- Project public lighting facility count and demand. Public lighting includes street lamps and traffic lights.
- Determine the needed photovoltaic panel capacity and diesel generator capacity for off-grid technology.
- Determine the diesel generator capacity for mini-grid technology.
- Determine the transformer capacity for grid technology.
To project population in the first year, the system takes the community’s initial population, determines whether it is rural or urban using a threshold and multiplies the population by the appropriate rural or urban growth rate. For each subsequent year, the process repeats. Thus it is possible for a community to start with a rural growth rate but end with an urban growth rate.
To project household count, the system takes the community’s projected population count at the end of the time horizon and divides it by the appropriate rural or urban mean household size.
To estimate each type of demand, the system multiplies the following factors:
Let’s explore each factor in more detail.
| Name | Population | Average Household Demand | Demand Scaling Factor |
|---|---|---|---|
| WWW Metro | 10,000,000 | 1,200 kWh/yr | 1,200 / 200 = 6 |
| XXX City | 4,000,000 | 1,000 kWh/yr | 1,000 / 200 = 5 |
| YYY Town | 1,000,000 | 600 kWh/yr | 600 / 200 = 3 |
| ZZZ Village | 500,000 | 200 kWh/yr | 200 / 200 = 1 |
Note
The assumption is that households in large cities consume more electricity than households in small towns. A household in a city might have air conditioning and more lighting than a household in a village.
| Name | Population | Average Commercial Facility Count |
|---|---|---|
| WWW Metro | 10,000,000 | 10,000 |
| XXX City | 4,000,000 | 5,000 |
| YYY Town | 1,000,000 | 500 |
| ZZZ Village | 500,000 | 50 |
- For off-grid technology, the photovoltaic panel capacity is sized on projected peak household, peak educational, peak health and peak public lighting demand while the diesel generator capacity is sized on projected peak productive and peak commercial demand.
- For mini-grid technology, the diesel generator capacity is sized on projected peak demand for the community.
- For grid technology, the transformer capacity is sized on projected peak demand for the community.
The costs are broadly split between initial capital costs of purchasing and installing the technology and annual recurring costs of maintaining and replacing the technology, including material and human costs. Interest rate is compounded annually for recurring costs and is used to compute the aggregate discounted cost for year zero.
The system takes the smaller of the off-grid and mini-grid discounted costs as the cheapest standalone option. The difference between the cheapest standalone option and the internal cost of preparing and maintaining a community for grid connection is the budget available for external grid extension. Finally, the system divides the budget available for grid extension by the cost of medium voltage line per meter to compute mvMax, or the maximum length of medium voltage line for which grid extension is cheaper than standalone options.
Note that community-specific data can override any of the intermediate variables in the model. The model is useful because it can estimate demand and cost given only population and some country-wide assumptions, but community-specific data can provide more accurate localized projections when available. It is a trade-off between gathering high-resolution data and getting estimates that are good enough.
The network building algorithms try to connect communities that are grid-compatible while optimizing for access or cost.
The modKruskal algorithm is a variation of Kruskal’s algorithm that tries to optimize construction cost using the mvMax decision metric.