## Usage

- Python 3
- `pip install -r requirements.txt`

## Run Ranking Cost Algorithm

`python run.py map01.json`

This script will load the map predefined in `map01.json` and train it with Ranking Cost algorithm. The routing result will be saved to `map01_solution.png`, and the cost maps will be saved to `map01_cost_map_0.png` and `map01_cost_map_1.png`.

## Cite
```
@inproceedings{
anonymous2021ranking,
title={Ranking Cost: One-Stage Circuit Routing by Directly Optimizing Global Objective Function},
author={Anonymous},
booktitle={Submitted to International Conference on Learning Representations},
year={2021},
url={https://openreview.net/forum?id=uQnJqzkhrmj},
note={under review}
}
```

Pleas don't distribute this code before the paper is accepted.