This release is a pre-release and may not be stable for production use.
FlixOpt: Progressive Flow System Optimization
Flexible • Low-entry • Investment • X-sector • OPTimization
Model more than costs · Easy to prototype · Based on dispatch · Sector coupling · Mathematical optimization
FlixOpt is a Python framework for progressive flow system optimization - from district heating networks to industrial production lines, from renewable energy portfolios to supply chain logistics.
Build simple models quickly, then incrementally add investment decision, multi-period planning, stochastic scenarios, and custom constraints without refactoring.
🚀 Quick Start
pip install flixopt
That's it! FlixOpt comes with the HiGHS solver included. You're ready to optimize.
The basic workflow:
import flixopt as fx
# 1. Define your system structure
flow_system = fx.FlowSystem(timesteps)
flow_system.add_elements(buses, components, effects)
# 2. Optimize
flow_system.optimize(fx.solvers.HighsSolver())
# 3. Analyze results
flow_system.solution # Raw xarray Dataset
flow_system.stats # Convenient analysis accessor
Get started with real examples:
- 📚 Full Documentation
- 💡 Examples Gallery - Complete working examples from simple to complex
- 🔧 API Reference
🌟 Why FlixOpt?
Progressive Enhancement - Your Model Grows With You
Start simple:
# Basic single-period model
flow_system = fx.FlowSystem(timesteps)
boiler = fx.linear_converters.Boiler("Boiler", eta=0.9, ...)
Add complexity incrementally:
- Investment decisions → Add
InvestParametersto components - Multi-period planning → Add
periodsdimension to FlowSystem - Uncertainty modeling → Add
scenariosdimension with probabilities - Custom constraints → Extend with native linopy syntax
No refactoring required. Your component definitions stay the same - periods, scenarios, and features are added as dimensions and parameters.
→ Learn more about multi-period and stochastic modeling
For Everyone
- Beginners: High-level components that "just work"
- Experts: Full access to modify models with linopy
- Researchers: Quick prototyping with customization options
- Engineers: Reliable, tested components without black boxes
- Students: Clear, Pythonic interfaces for learning optimization
Key Features
Multi-criteria optimization: Model costs, emissions, resource use - any custom metric. Optimize single objectives or use weighted combinations and ε-constraints. → Effects documentation
Performance at any scale: Choose optimization modes without changing your model - full optimization, rolling horizon, or clustering (using TSAM). → Scaling notebooks
Built for reproducibility: Self-contained NetCDF result files with complete model information. Load results months later - everything is preserved. → Results documentation
Flexible data operations: Transform FlowSystems with xarray-style operations (sel(), resample()) for multi-stage optimization.
🎯 What is FlixOpt?
A General-Purpose Flow Optimization Framework
FlixOpt models any system involving flows and conversions:
- Energy systems: District heating/cooling, microgrids, renewable portfolios, sector coupling
- Material flows: Supply chains, production lines, chemical processes
- Integrated systems: Water-energy nexus, industrial symbiosis
While energy systems are our primary focus, the same foundation applies universally. This enables coupling different system types within integrated models.
Modern Foundations
Built on linopy and xarray, FlixOpt delivers performance and transparency. Full access to variables, constraints, and model structure. Extend anything with native linopy syntax.
Our Position
We bridge the gap between high-level strategic models (like FINE) and low-level dispatch tools - similar to PyPSA. FlixOpt is the sweet spot for detailed operational planning and long-term investment analysis in the same framework.
Academic Roots
Originally developed at TU Dresden for the SMARTBIOGRID project (funded by the German Federal Ministry for Economic Affairs and Energy, FKZ: 03KB159B). FlixOpt evolved from the MATLAB-based flixOptMat framework while incorporating best practices from oemof/solph.
🛣️ Roadmap
FlixOpt aims to be the most accessible, flexible, and universal Python framework for energy and material flow optimization. We believe optimization modeling should be approachable for beginners yet powerful for experts, minimizing context switching between different planning horizons.
Current focus:
- Enhanced component library (sector coupling, hydrogen, thermal networks)
- Examples showcasing multi-period and stochastic modeling
- Advanced result analysis and visualization
Future vision:
- Modeling to generate alternatives (MGA) for robust decision-making
- Advanced stochastic optimization (two-stage, CVaR)
- Community ecosystem of user-contributed components
🛠️ Installation
Basic Installation
pip install flixopt
Includes the HiGHS solver - you're ready to optimize immediately.
Full Installation
For additional features (interactive network visualization, time series aggregation):
pip install "flixopt[full]"
Solver Support
FlixOpt supports many solvers via linopy: HiGHS (included), Gurobi, CPLEX, CBC, GLPK, and more.
🤝 Contributing
FlixOpt thrives on community input. Whether you're fixing bugs, adding components, improving docs, or sharing use cases - we welcome your contributions.
📖 Citation
If FlixOpt supports your research or project, please cite:
- Main Citation: DOI:10.18086/eurosun.2022.04.07
- Short Overview: DOI:10.13140/RG.2.2.14948.24969
To pinpoint which version you used in your work, please reference one of these doi's here:
📄 License
MIT License - See LICENSE for details.
Release files for flixopt 8.1.0rc1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| flixopt-8.1.0rc1.tar.gz | 330.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| flixopt-8.1.0rc1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 634.9 kB
Release files / flixopt-8.1.0rc1.tar.gz
| Download URL | flixopt-8.1.0rc1.tar.gz |
|---|---|
| Size | 330.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a352d174a861e16d6fb2f78be93fbf06d4e08ce4e22653a0dd4b35f4eb5aa484
|
|
BLAKE2b-256 checksum How to use checksums |
bcae50420489a694f11e8109da6d02c8326a1ad5922c44220c6a70474c3ad084
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 2, 2026.
Transparency logRelease files / flixopt-8.1.0rc1-py3-none-any.whl
| Download URL | flixopt-8.1.0rc1-py3-none-any.whl |
|---|---|
| Size | 304.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7b5f0cf44ecdd343ba838892c2e424da3b301ddae75f8a7742a3d53e1f1a1635
|
|
BLAKE2b-256 checksum How to use checksums |
1068814fee6e3b2535ab434823401336adbb07c6377d1ce17367ec3bab2050ea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 2, 2026.
Transparency log