# Code for "Online policy selection for inventory problems"

* To run this code you can:

  1. Create a Python virtual environment (we tested it with version 3.11.6). 
  2. Activate your environment
  3. Install the requirements through `pip install -r requirements.txt`
  4. Install this as an editable package through `pip install -e .`
    
    You should then be able to run the notebooks based on synthetic data, available in `notebooks/synthetic`.

* If, in addition, you want to run the experiments based on the M5 dataset available in `notebooks/m5`, you will need to load this dataset through:
    ```
    python src/policy_selection_for_inventories/data/m5_loader.py
    ```