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
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