Installation#
This page shows the recommended local setup for APEM. The goal is to get a clean Python environment, install the package, and make sure the solver setup is in place.
Before You Start#
You will need:
Python 3.10, 3.11, or 3.12. Python 3.11 is recommended.
gita virtual environment tool (
venvis enough)a valid Gurobi license for optimization runs
1. Clone The Repository#
git clone https://github.com/teodora-dobos/APEM.git
cd APEM
2. Create A Virtual Environment#
python -m venv .venv
Activate it:
# macOS / Linux
source .venv/bin/activate
# Windows PowerShell
.\.venv\Scripts\Activate.ps1
3. Install Dependencies#
Install the runtime dependencies and the package itself:
pip install -r requirements.txt
pip install -e .
The editable install makes sure local source-code changes are picked up immediately.
4. Configure Gurobi#
APEM uses Gurobi for its optimization workflows. Make sure:
Gurobi is installed in the same Python environment
your license is available on the machine
If your environment does not already include gurobipy, install it with:
pip install gurobipy
Then verify that your license is active before running larger workflows.
For local named-user licenses, Gurobi usually looks for gurobi.lic in the
user home directory. For WLS licenses, create or download the license
credentials from the Gurobi license manager and make sure they are available in
the environment where APEM is run.
5. Verify The Installation#
From the repository root, run:
python -c "import apem; print('APEM import successful')"
If that works, the Python package is installed correctly.
Next Step#
After installation, continue with the configuration page and then choose the workflow you want to run.