Skip to content

Latest commit

 

History

History
60 lines (39 loc) · 1.88 KB

File metadata and controls

60 lines (39 loc) · 1.88 KB

Getting Started with FlixOpt

This guide will help you install FlixOpt, understand its basic concepts, and run your first optimization model.

Installation

Basic Installation

Install FlixOpt directly into your environment using pip:

pip install flixopt

This provides the core functionality with the HiGHS solver included.

Full Installation

For all features including interactive network visualizations and time series aggregation:

pip install "flixopt[full]"

Logging

FlixOpt uses loguru for logging. Logging is silent by default but can be easily configured. For beginners, use our internal convenience methods. Experts can use loguru directly.

from flixopt import CONFIG

# Enable console logging
CONFIG.Logging.console = True
CONFIG.Logging.level = 'INFO'
CONFIG.apply()

# Or use a preset configuration for exploring
CONFIG.exploring()

For more details on logging configuration, see the [CONFIG.Logging][flixopt.config.CONFIG.Logging] documentation.

Basic Workflow

Working with FlixOpt follows a general pattern:

  1. Create a [FlowSystem][flixopt.flow_system.FlowSystem] with a time series
  2. Define [Effects][flixopt.effects.Effect] (costs, emissions, etc.)
  3. Define [Buses][flixopt.elements.Bus] as connection points in your system
  4. Add [Components][flixopt.components] like converters, storage, sources/sinks with their Flows
  5. Run [Calculations][flixopt.calculation] to optimize your system
  6. Analyze [Results][flixopt.results] using built-in or external visualization tools

Next Steps

Now that you've installed FlixOpt and understand the basic workflow, you can: