Skip to main content

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

Project description

https://github.com/VY4E/.github/blob/f702b41f95871fa4c76195a16e9fb8572e3285d4/VY4E_avatar_transparent_v6.png

VY4E-OptModel is the core optimization engine of the VY4E ecosystem. 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 VY4E-data (datasets) and VY4E-examples (notebooks)


📂 Structure

  • src/: Core source code for the optimization 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/VY4E-nexus/VY4E-OptModel.git
cd VY4E-OptModel
  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 optimization 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 VY4E-OptModel, 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


Download files

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

Source Distribution

vy4e_optmodel-1.0.15rc4.tar.gz (24.3 MB view details)

Uploaded Source

Built Distribution

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

vy4e_optmodel-1.0.15rc4-py3-none-any.whl (54.8 kB view details)

Uploaded Python 3

File details

Details for the file vy4e_optmodel-1.0.15rc4.tar.gz.

File metadata

  • Download URL: vy4e_optmodel-1.0.15rc4.tar.gz
  • Upload date:
  • Size: 24.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.32.3

File hashes

Hashes for vy4e_optmodel-1.0.15rc4.tar.gz
Algorithm Hash digest
SHA256 eb8863ca9ddd724ce1ae452e737727aff49b485187f8a5b4620cf724d7f8bd1c
MD5 7b55997243d31c614d541eec714b49b7
BLAKE2b-256 d47efd3a131021c5996ab9bda486be66d26108ec5f54b02e6a073a1fa9883110

See more details on using hashes here.

File details

Details for the file vy4e_optmodel-1.0.15rc4-py3-none-any.whl.

File metadata

File hashes

Hashes for vy4e_optmodel-1.0.15rc4-py3-none-any.whl
Algorithm Hash digest
SHA256 4420f4c5d88d11f73105fa649178e1963519b381ffba6d9e9aca9f1062becc1b
MD5 025af6c4e34e6b48de7dd674be65de4c
BLAKE2b-256 beefbb2dbd20cfebfcd6062b2dbee0efbb73562b5f565377f912ea3c10090aa5

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