Skip to main content

Various algorithms and utilities for stable matching problems

Project description

pyhrtc

pyhrtc is a Python module to inspect various types of stable matching problems. In particular, it can handle the Hospital-Residents problem with both Ties and Couples, also known as HRTC. Having no couples reduces this to the Hospital-Residents problem with Ties, HRT, and by letting all hospitals have capacity 1 we get the Stable Marriage with Ties and Incomplete Lists problem, SMTI.

Features

This package can currently

  • read instance files in multiple formats,
  • write instance files,
  • inspect residents and hospitals,
  • combine some pairs of doctors into couples, and
  • find maximum size matchings (not necessarily stable).

Status

Build status

File formats

Currently this package only really supports what is colloquially known as the Glasgow file format, the format used by researchers working at the University of Glasgow, or their collaborators.

Future plans

This mostly started as a tool to inspect instances of HRTC for various parameters, but it is growing. One day I might even write up a model that would solve HRTC, but that day is not today.

Can I help?

Yes! If you want to add features, or request features, please just raise an issue. I can't promise anything, but it's good to know what people want.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyhrtc-0.0.1.tar.gz (13.9 kB view hashes)

Uploaded Source

Built Distribution

pyhrtc-0.0.1-py3-none-any.whl (29.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page