Installation¶
This guide covers installing flixOpt and its dependencies.
Basic Installation¶
Install flixOpt directly into your environment using pip:
This provides the core functionality with the HiGHS solver included.
Full Installation¶
For all features including interactive network visualizations and time series aggregation:
Development Installation¶
If you want to contribute to flixOpt or work with the latest development version:
Solver Installation¶
HiGHS (Included)¶
The HiGHS solver is included with flixOpt and works out of the box. No additional installation is required.
Gurobi (Optional)¶
For academic use, Gurobi offers free licenses:
- Register for an academic license at gurobi.com
- Install Gurobi:
- Activate your license following Gurobi's instructions
FICO Xpress (Optional)¶
Xpress ships with a free Community license for small models (up to 5000 rows and columns combined). Academic and commercial licenses are available from FICO:
- Install Xpress:
- For larger models, point Xpress to your license file (e.g. via the
XPAUTH_PATHenvironment variable) - Use it via
fx.solvers.XpressSolver()
Version requirements
XpressSolver needs Xpress 9.0 or newer (for the TIMELIMIT control). Use linopy 0.5.8 or newer: older versions cannot return a solution when Xpress stops at the time limit.
Verification¶
Verify your installation by running:
Logging Configuration¶
flixOpt uses Python's standard logging module with optional colored output via colorlog. Logging is silent by default but can be easily configured:
from flixopt import CONFIG
# Enable colored console logging
CONFIG.Logging.enable_console('INFO')
# Or use a preset configuration for exploring
CONFIG.exploring()
Since flixOpt uses Python's standard logging, you can also configure it directly:
import logging
# Get the flixopt logger and configure it
logger = logging.getLogger('flixopt')
logger.setLevel(logging.DEBUG)
logger.addHandler(logging.StreamHandler())
For more details on logging configuration, see the CONFIG.Logging documentation.
Next Steps¶
- Follow the Quick Start guide
- Explore the Minimal Example
- Read about Core Concepts