This repository contains a comprehensive collection of MATLAB and C# tools for the simulation, optimization, and control of biogas plants. It is based on the Anaerobic Digestion Model No. 1 (ADM1) and provides extensive functionality for modeling all relevant components of a biogas plant.
The toolboxes are designed to support research and development in the field of anaerobic digestion. They include process models, control algorithms, optimization methods, and graphical user interfaces.
- ADM1 Integration: Scientifically validated process model.
- Full Plant Modeling: Digesters, CHPs, pumps, substrates, sensors.
- Control & Optimization: Advanced control strategies and optimization tools.
- Machine Learning: Tools for data-driven modeling and analysis.
- C# Toolbox: A standalone C# library for biogas plant modeling.
The repository is organized into several specialized toolboxes:
biogas_blocks/: Simulink blocks simulating biogas plant components.biogas_c#/: A comprehensive C# library for modeling and simulation.biogas_calibration/: Tools for calibrating biogas plant models.biogas_control/: Advanced control algorithms for biogas processes.biogas_gui/: Graphical user interfaces for monitoring and simulation.biogas_ml/: Machine learning tools tailored for biogas data.biogas_optimization/: Optimization scripts for plant operation.biogas_scripts/: General utility scripts for biogas modeling.
data_tool/: Data processing and statistical analysis.numerics_tool/: Numerical methods and classes.optimization_tool/: General-purpose optimization algorithms.ml_tool/: Machine learning framework.cv_tool/: Computer vision utilities.io_tool/: File I/O operations.doc_tool/: Automated documentation generation.setup_tool/: Installation and path management.toolbox_creator/: Tools for creating and packaging MATLAB toolboxes.
- Ensure you have MATLAB R2010a or later installed.
- Clone this repository to your local machine.
- Set the repository root as your current MATLAB directory.
- Run the installation script:
Note: Detailed installation steps can be found in
install_biogaslibrary_full()
ReadMe1st.txt.
- Navigate to
.../biogaslibrary/examples/model/Gummersbach. - Open
plant_gummersbach.mdlin Simulink. - Start the simulation.
- Use the
gui_sensorstool to visualize process values after simulation.
The biogas_c# directory contains a standalone C# library for biogas plant modeling. It is suitable for integration into .NET applications.
For more details, see the Biogas C# Toolbox README.
- MATLAB Help: Use the
doccommand in MATLAB to access the integrated help files. - C# API: API documentation for the C# library is located in
docs/biogas_csharp/api_documentation/.
The models are primarily based on:
- Batstone et al. (2002): "The IWA Anaerobic Digestion Model No 1 (ADM1)"
- Research conducted at Cologne University of Applied Sciences (TH Köln).
This project is licensed under the GNU General Public License v3.0. See the LICENSE file for details.
- Daniel Gaida: daniel.gaida@th-koeln.de
- GECO-C Team: http://geco.web.fh-koeln.de/
Last Updated: February 2025