This repository contains code for the paper "Non-monotonic Resource Utilization in the Bandits with Knapsacks Problem" published in NeurIPS 2022.
- Create a data file according to the format mentioned in the data/format.txtand store it in thedatadirectory.
- Change directory to src.
- Run python main.py --data_filename {name of the data file created in step 1} --trials {number of trials of the algorithms to average over}--learning {include if you want to run the learning algorithm, exclude if not}.
- The plots are stored in the plotsdirectory.
If you use this code, please cite the following paper
@inproceedings{kumar2022nonmonotonic,
  author    = "Kumar, Raunak and Kleinberg, Robert D.",
  title     = "Non-monotonic Resource Utilization in the Bandits with Knapsacks Problem",
  year      = "2022",
  booktitle = "Proceedings of the 36th Conference on Neural Information Processing Systems (\textbf{NeurIPS})"
}