# CMO Datasets Generation

This code is modified based on the code of  [DSRL](https://github.com/liuzuxin/DSRL) and [FSRL](https://github.com/liuzuxin/fsrl) and used for generating the CMO datasets in **An Offline Adaptation Framework for Constrained Multi-Objective Reinforcement Learning**.



## Installation

First create a new conda environment and run the commands:

```bash
pip install -e .
```

Then, install FSRL:

```bash
cd FSRL-main
pip install -e .
```

Then, install D4MORL environments :

```
cd MOEnvs
pip install -e .
```



## Dataset Generation

Generate the CMO datasets by running

```
bash ./scripts/run.sh
```

Note that the dataset files generated in `./data` in this project should be moved to `./PDOA/data/cmo` in the main project of PODA.