Skip to content
Snippets Groups Projects
Commit dc37cb70 authored by jilles dibangoye's avatar jilles dibangoye
Browse files

Merge branch 'dibangoye-de98eaf8-patch-5f7f' into 'main'

Update file README.md

See merge request !2
parents de98eaf8 2a1c48da
No related branches found
No related tags found
1 merge request!2Update file README.md
...@@ -22,11 +22,11 @@ The repository is organized to enable researchers and practitioners to: ...@@ -22,11 +22,11 @@ The repository is organized to enable researchers and practitioners to:
## Contents ## Contents
- `cmake/`: Configuration files for CMake build system. - `src/`: Main C++ source code.
- `include/tb2/`: Header files used in the SCP implementation.
- `src/`: Main C++ source code for the SCP approach.
- `tests/`: Unit tests for key components.
- `CMakeLists.txt`: Build configuration file. - `CMakeLists.txt`: Build configuration file.
- `tests/`: Python scripts (to run multiple experiments and/or plot results).
- `cmake/`: Configuration files for CMake build system.
- `include/tb2/`: [Toulbar](https://github.com/toulbar2/toulbar2) files.
--- ---
...@@ -36,15 +36,14 @@ The repository is organized to enable researchers and practitioners to: ...@@ -36,15 +36,14 @@ The repository is organized to enable researchers and practitioners to:
- **C++ Compiler**: GCC (>= 9.0) or Clang (>= 10.0) recommended. - **C++ Compiler**: GCC (>= 9.0) or Clang (>= 10.0) recommended.
- **CMake**: Version 3.15 or higher. - **CMake**: Version 3.15 or higher.
- **Libraries**: - **Libraries**:
- [Eigen](https://eigen.tuxfamily.org): Linear algebra library. - [Eigen](https://eigen.tuxfamily.org): Linear algebra library (required).
- [Boost](https://www.boost.org): General-purpose C++ library. - [Cplex](https://www.ibm.com/products/ilog-cplex-optimization-studio): For simultaneous algorithms (optional).
- [GTest](https://github.com/google/googletest): For running unit tests.
### Installation ## Installation
1. Clone this repository: 1. Clone this repository:
```bash ```bash
git clone https://git.lwp.rug.nl/ml-rug/osarsa-aaai-25.git git clone https://git.lwp.rug.nl/ml-rug/osarsa-aaai-25.git
cd osarsa-aaai-25 cd osarsa-aaai-25/code
``` ```
2. Build the project using CMake: 2. Build the project using CMake:
...@@ -55,19 +54,39 @@ The repository is organized to enable researchers and practitioners to: ...@@ -55,19 +54,39 @@ The repository is organized to enable researchers and practitioners to:
make make
``` ```
3. Run the example: 3. To run without Cplex: edit CMakeLists.txt, change
```bash
set(USE_CPLEX, "ON")
```
to
```bash ```bash
./code/src/problem_examples set(USE_CPLEX, "OFF")
``` ```
4. Test:
```bash
./sdms -n oSarsa-seq -f tiger
```
should run the (sequential) oSarsa algorithm on the tiger problem.
--- ---
## Usage ## Usage
### Reproducing Results ### Main Options
Reproducing results from the paper:
problem name: -f (mabc, recycling, tiger, boxPushingUAI07, Grid3x3corners, Mars, GridSmall)
agent numbers: -N
planning horizon: -p
algorithm: -n (oSarsa, oSarsa-seq, A2C, IQL)
memory: -m
seed: -s
timeout (seconds): -t
Example:
```bash ```bash
./src/main.cpp ./sdms -f GridSmall -N 3 -p 10 -n oSarsa-seq -m 2 -t 100 -s 0
``` ```
--- ---
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment