# frenkowski/scimai-gym architecture

> Architecture diagram of the GitHub repository frenkowski/scimai-gym, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-17). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/frenkowski/scimai-gym
- Repository: https://github.com/frenkowski/scimai-gym

## Overview

SCIMAI-Gym is a notebook-based research product for supply-chain inventory management: users configure and simulate an environment, compare Oracle and (s, Q) baselines with Bayesian-optimization and deep-reinforcement-learning agents, then inspect performance and training time. The README documents these stages and archived paper results, but no notebook source was available to verify internal calls or data flow. Nodes therefore represent documented notebook sections and result archives; the workflow edges are README-backed.

Main entry points: [`ECML-PKDD_SCIMAI-Gym.ipynb`](https://github.com/frenkowski/scimai-gym/blob/main/ECML-PKDD_SCIMAI-Gym.ipynb) (Final results), [`Paper_Results/ECML-PKDD`](https://github.com/frenkowski/scimai-gym/tree/main/Paper_Results/ECML-PKDD) (ECML-PKDD results), [`Paper_Results/IJPE`](https://github.com/frenkowski/scimai-gym/tree/main/Paper_Results/IJPE) (IJPE results)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_simulation["Supply-chain simulation"]
  node_environment["Supply-chain environment"]
  node_simulator["Simulation methods"]
end

subgraph group_baselines["Baselines and BO"]
  node_oracle["Oracle baseline"]
  node_sq_policy["&#40;s, Q&#41; policy"]
  node_bo_training["BO optimization"]
end

subgraph group_agents["DRL agents"]
  node_drl_config["DRL configuration"]
  node_drl_training["DRL agent training"]
end

subgraph group_outputs["Results and artifacts"]
  node_results["Final results"]
  node_ecml_archives["ECML-PKDD results"]
  node_ijpe_archives["IJPE results"]
end

node_user(("Researcher"))

node_user -->|"configures and initializes"| node_environment
node_environment -->|"provides methods"| node_simulator
node_user -->|"initializes baseline"| node_oracle
node_user -->|"initializes baseline"| node_sq_policy
node_user -->|"runs optimization"| node_bo_training
node_user -->|"sets parameters"| node_drl_config
node_user -->|"trains agents"| node_drl_training
node_user -->|"runs results"| node_results
node_results -.->|"compares with"| node_ecml_archives
node_results -.->|"compares with"| node_ijpe_archives

click node_environment "https://github.com/frenkowski/scimai-gym/blob/main/ECML-PKDD_SCIMAI-Gym.ipynb"
click node_simulator "https://github.com/frenkowski/scimai-gym/blob/main/ECML-PKDD_SCIMAI-Gym.ipynb"
click node_oracle "https://github.com/frenkowski/scimai-gym/blob/main/ECML-PKDD_SCIMAI-Gym.ipynb"
click node_sq_policy "https://github.com/frenkowski/scimai-gym/blob/main/ECML-PKDD_SCIMAI-Gym.ipynb"
click node_bo_training "https://github.com/frenkowski/scimai-gym/blob/main/ECML-PKDD_SCIMAI-Gym.ipynb"
click node_drl_config "https://github.com/frenkowski/scimai-gym/blob/main/ECML-PKDD_SCIMAI-Gym.ipynb"
click node_drl_training "https://github.com/frenkowski/scimai-gym/blob/main/ECML-PKDD_SCIMAI-Gym.ipynb"
click node_results "https://github.com/frenkowski/scimai-gym/blob/main/ECML-PKDD_SCIMAI-Gym.ipynb"
click node_ecml_archives "https://github.com/frenkowski/scimai-gym/tree/main/Paper_Results/ECML-PKDD"
click node_ijpe_archives "https://github.com/frenkowski/scimai-gym/tree/main/Paper_Results/IJPE"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_environment,node_simulator toneBlue
class node_oracle,node_sq_policy,node_bo_training toneAmber
class node_drl_config,node_drl_training toneMint
class node_results,node_ecml_archives,node_ijpe_archives toneRose
class node_user toneIndigo
```

## Components

### Supply-chain simulation

- [Supply-chain environment](https://github.com/frenkowski/scimai-gym/blob/main/ECML-PKDD_SCIMAI-Gym.ipynb): `ECML-PKDD_SCIMAI-Gym.ipynb`
- [Simulation methods](https://github.com/frenkowski/scimai-gym/blob/main/ECML-PKDD_SCIMAI-Gym.ipynb): `ECML-PKDD_SCIMAI-Gym.ipynb`

### Baselines and BO

- [Oracle baseline](https://github.com/frenkowski/scimai-gym/blob/main/ECML-PKDD_SCIMAI-Gym.ipynb): `ECML-PKDD_SCIMAI-Gym.ipynb`
- [(s, Q) policy](https://github.com/frenkowski/scimai-gym/blob/main/ECML-PKDD_SCIMAI-Gym.ipynb): `ECML-PKDD_SCIMAI-Gym.ipynb`
- [BO optimization](https://github.com/frenkowski/scimai-gym/blob/main/ECML-PKDD_SCIMAI-Gym.ipynb): `ECML-PKDD_SCIMAI-Gym.ipynb`

### DRL agents

- [DRL configuration](https://github.com/frenkowski/scimai-gym/blob/main/ECML-PKDD_SCIMAI-Gym.ipynb): `ECML-PKDD_SCIMAI-Gym.ipynb`
- [DRL agent training](https://github.com/frenkowski/scimai-gym/blob/main/ECML-PKDD_SCIMAI-Gym.ipynb): `ECML-PKDD_SCIMAI-Gym.ipynb`

### Results and artifacts

- [Final results](https://github.com/frenkowski/scimai-gym/blob/main/ECML-PKDD_SCIMAI-Gym.ipynb): `ECML-PKDD_SCIMAI-Gym.ipynb`
- [ECML-PKDD results](https://github.com/frenkowski/scimai-gym/tree/main/Paper_Results/ECML-PKDD): `Paper_Results/ECML-PKDD`
- [IJPE results](https://github.com/frenkowski/scimai-gym/tree/main/Paper_Results/IJPE): `Paper_Results/IJPE`

### Other components

- **Researcher**

## Connections

- Researcher → Supply-chain environment: configures and initializes (evidence: `README.md`)
- Supply-chain environment → Simulation methods: provides methods (evidence: `README.md`)
- Researcher → Oracle baseline: initializes baseline (evidence: `README.md`)
- Researcher → (s, Q) policy: initializes baseline (evidence: `README.md`)
- Researcher → BO optimization: runs optimization (evidence: `README.md`)
- Researcher → DRL configuration: sets parameters (evidence: `README.md`)
- Researcher → DRL agent training: trains agents (evidence: `README.md`)
- Researcher → Final results: runs results (evidence: `README.md`)
- Final results → ECML-PKDD results: compares with
- Final results → IJPE results: compares with
