This code is maintained for legacy purposes. For new projects requiring constrained optimisation I highly recommend the ompr R package
Coop is a generalised heuristic for budget constrained optimisations using simulated annealing. You can use coop to search for optimal combinations of scenarios (e.g. intervention mixes across districts) which minimise a target outcome (e.g. cases). Optimal outcomes can be budget constrained at multiple levels (e.g. the solution must comply with global and country budgets).
You can install coop from github with:
# install.packages("remotes")
remotes::install_github("mrc-ide/coop")