Skip to content

Commit 42f50fb

Browse files
authored
Create README.md
1 parent dd0b1b8 commit 42f50fb

File tree

1 file changed

+57
-0
lines changed

1 file changed

+57
-0
lines changed

README.md

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# StableMatchingCodes
2+
3+
These are the various codes used for [Mathematical models for stable matching problems with incomplete lists and ties](https://arxiv.org/abs/1810.02711), which is currently under review. Each sub-folder in this repository is a coding of a different model, and the paper describes the differences between all the models.
4+
5+
## Compiling
6+
7+
These all require an operational [Gurobi](https://gurobi.com) runtime installed, and you will have to edit the makefiles to point to the correct location to find the Gurobi library and headers. Once that is done, compiling is handled by running `make`
8+
9+
10+
## Execution
11+
12+
After compilation, each different model is run in a similar manner:
13+
```
14+
$ ./EXECUTABLE /path/to Problem.txt Logfile.txt
15+
```
16+
17+
where the `/path/to` is the path to where the problems are stored, `Problem.txt` is a problem file (described below) and Logfile.txt is a place to write the logfile. The solution is written to standard output, and we recommend redirecting this to a file as well.
18+
19+
20+
## Problem files
21+
22+
Problem files must conform to the following standard exactly. Any deviation may result in unexpected behaviour (although most likely, crashing the program). If you wish to see examples, all of our instances are available at http://researchdata.gla.ac.uk/664/
23+
24+
### SMTI-GRP problem files
25+
26+
```
27+
X
28+
Y
29+
TABLE
30+
```
31+
where `X` is the number of rows and `Y` is the number of columns in the table, and TABLE is a table of floating point numbers, with columns separated by spaces.
32+
33+
### SMTI problem files
34+
35+
```
36+
0
37+
X
38+
Y
39+
PREFERENCES
40+
```
41+
42+
where X is the number of agents of the first type, and Y is the number of agents of the second type. Preferences are given with each line corresponding to the preferences of one agent. For the first set of agents, the line first contains an identifier, and then the preferences in descending order with ties indicated by brackets.
43+
44+
For agents of the second type, the line first contains an identifier, and then the number 1, and then finally the preferences in descending order with ties indicated by brackets.
45+
46+
### HRT problem files
47+
48+
```
49+
0
50+
X
51+
Y
52+
PREFERENCES
53+
```
54+
55+
Again, X is the number of doctors, and Y is the number of hospitals. The doctors preferences come first, with each line containing first an identifier and then the preferences in descending order with ties indicated by brackets.
56+
Hospital preferences first contain an identifier, and then the hospital capacity, and then the preferences in descending order with ties indicated by brackets.
57+

0 commit comments

Comments
 (0)