Skip to content

fluxopt-yaml

Declarative YAML + CSV model definition for fluxopt energy system models.

Early development

This package is experimental — the API may change between releases.

Installation

pip install fluxopt-yaml

Quick start

from fluxopt_yaml import load_yaml

data = load_yaml('model.yaml')

Example YAML file:

effects:
  - name: cost
    is_objective: true

ports:
  - name: grid
    imports:
      - carrier: electricity
        size: 200
        effects_per_flow_hour:
          cost: 0.04