- 
                Notifications
    You must be signed in to change notification settings 
- Fork 9
Description
Based on projected (desired) shares for certain technologies defined by the user, make OnStove select the regions where each technology should be prioritized. This can be done using each technology's net benefit calculation and prioritizing their shares, maximizing the overall total benefit.
One approach that was developed by Babak in https://github.com/Open-Source-Spatial-Clean-Cooking-Tool/OnStove/tree/bk/conditional_opt. However, this approach is very computationally intensive and it can produce weird results having some cells sharing several technologies for a very few population.
An approach we can try is to use the net benefits as rankings, where we sort the dataframe by the value of the max benefit achieved and identify the threshold where at least one technology achieves its target population. Then we remove that technology from the remaining cells and recategorize them based on the maximum benefits achieved by the other technologies. Then we find again the next threshold until all desired technologies achieve their targets.