Skip to main content

An open-source optimization model for the design and operation of hybrid renewable energy systems.

Project description

EL1XR logo

el1xr_opt is the core optimization engine of the EL1XR-dev. It provides the fundamental modelling framework for integrated zero-carbon energy systems, supporting electricity, heat, hydrogen, and storage.


🚀 Features

  • Modular formulation for multi-vector energy systems

  • Compatible with deterministic, stochastic, and equilibrium approaches

  • Flexible temporal structure: hours, days, representative periods

  • Built on JuMP / Pyomo (depending on module choice)

  • Interfaces with EL1XR-data (datasets) and EL1XR-examples (notebooks)


📂 Structure

  • src/: Core source code for the optimisation model.

  • data/: Sample case studies.

  • docs/: Documentation and formulation notes.

  • tests/: Validation and regression tests.


📦 Prerequisites

  • Python 3.12 or higher.

  • A supported solver: Gurobi, CBC, or CPLEX. Make sure the solver is installed and accessible in your system’s PATH.


🚀 Installation

  1. Clone the repository:

git clone https://github.com/EL1XR-dev/el1xr_opt.git
cd el1xr_opt
  1. Create and activate a virtual environment (recommended):

python -m venv venv
source venv/bin/activate  # On Windows use `venv\Scripts\activate`
  1. Install the required Python packages:

pip install -r requirements.txt

Usage

To run the optimisation model, use the oM_Main.py script from the src directory.

python src/oM_Main.py --case <case_name> --solver <solver_name>

Command-line Arguments

  • --dir: Directory containing the case data (defaults to the current directory).

  • --case: Name of the case to run (e.g., Home1).

  • --solver: Solver to use (e.g., gurobi, cbc, cplex).

  • --date: Model run date in “YYYY-MM-DD HH:MM:SS” format.

  • --rawresults: Save raw results (True/False).

  • --plots: Generate plots (True/False).


🤝 Contributing

Contributions are welcome! If you want to contribute to el1xr_opt, please follow these steps:

  1. Fork the repository.

  2. Create a new branch for your feature or bug fix.

  3. Make your changes and commit them with a clear message.

  4. Push your changes to your fork.

  5. Create a pull request to the main branch of this repository.


📄 License

This project is licensed under the terms of the GNU General Public License v3.0.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

el1xr_opt-1.0.1.tar.gz (18.9 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

el1xr_opt-1.0.1-py3-none-any.whl (6.6 MB view details)

Uploaded Python 3

File details

Details for the file el1xr_opt-1.0.1.tar.gz.

File metadata

  • Download URL: el1xr_opt-1.0.1.tar.gz
  • Upload date:
  • Size: 18.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.32.5

File hashes

Hashes for el1xr_opt-1.0.1.tar.gz
Algorithm Hash digest
SHA256 459a50760f12f6d7da2ca8403c6a5bb9972cf0a2f5600977482929493634c399
MD5 af7c7739b63620194f510ad386c891af
BLAKE2b-256 28653ce03a419615d225974fb41b23a1979f1120749eeb1cd2ccf8e0f46895b1

See more details on using hashes here.

File details

Details for the file el1xr_opt-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: el1xr_opt-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 6.6 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.32.5

File hashes

Hashes for el1xr_opt-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8b5f441d9f118b335fb12d56bf81720379890fda8f4e9f0cdb8e0d5a069b15ec
MD5 b1445a1825bfbed9a0d950b963a8dc70
BLAKE2b-256 9afbd11b5f090d4b13ce0ced3d54c0dc2e5aa29fe562deed7475afbc8cb43b31

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page