lokigi

Make better, evidence-based decisions about where to locate your healthcare (and other) services

lokigi exists to make the process of providing decision support for healthcare problems with a geographical component easier. Whether you’re planning a whole range of new services, adding a few new sites to an existing set of locations, or making difficult decisions about minimising the impact of service closures, lokigi can help.

Focussing on solving discrete facility location problems — problems where you need to make the best decision from a range of candidate locations — lokigi provides tools to structure your problem, run optimization algorithms, and communicate the results effectively.

Warning

Lokigi is currently in an alpha state. We would not recommend using it for projects just yet as the test suite is limited and more validation needs to be undertaken in general.

However, we would welcome your input on the design, usability and features of the project. Please raise issues over on GitHub.

Important

Breaking changes to the API may occur with minor releases prior to v1.0 release.

All breaking changes past v1.0 will incur major version changes.


Install with a single command

pip install lokigi



What does the name mean?

lokigi is the Esperanto for ‘to locate’ or ‘to place’

It can also be read as the backronym ‘Location Optimisation: K-best solution Inspection, Generation & Insights’ - whichever floats your boat.


How to cite lokigi

Coming soon!

Acknowledgements

Thanks goes to all of the following people (emoji key).

Sammi Rosser
Sammi Rosser

💻 📖 ⚠️ 🐛 🖋 🎨 💡 🤔 🚇 🚧 📆 🔬
Tom Monks
Tom Monks

💻 🤔 🧑‍🏫
Dr Daniel Chalk
Dr Daniel Chalk

🧑‍🏫
Amy Heather
Amy Heather

🚇


Licence

lokigi is released under the MIT licence.

MIT License

Copyright (c) 2026 Sammi Rosser

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

This package builds on work from the metapy project from Dr Tom Monks.

Metapy can be found here.

Metapy is release under the MIT licence. The licence is reproduced below in line with the terms of the licence.

MIT License

Copyright (c) 2020 health-data-science-OR

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Modified metapy code is noted within the source code.

Back to top