Implementation for Kidney Exchange problem using python and cplex.
Given a pair of patient and donor where the donor is willing to donate his kidney yet may not be compatible; given a large pool of such pairs, by what method can a trade occur with the goal that the quantity of transplants is maximized.
- Python 3
- Cplex
- A json file which consists of data represnting donors and patients and their comaptibility with score.
- Maximum Cycle size
- Maximum chain length
- Optimality criteria through which you want to implement kidney exchange.
Command : python pipelin.py "json file" I have already a json file genjson-0.json. You can keep any json file.
For example :- python pipeline.py genjson-0.json
The output should be mostly self-explanatory. The valid exchanges are printed as well as a visual graph is also saved as an image.