Skip to content
Discussion options

You must be logged in to vote

Alternatively, here is a altered example with the solution

import flixopt as fx
import pandas as pd
import numpy as np
import pathlib
from typing import Dict, List, Union
import plotly.graph_objects as go

if __name__ == '__main__':
    timesteps = pd.date_range('2024-01-01', periods=100, freq='15min')
    flow_system = fx.FlowSystem(timesteps)  # Create FlowSystem

    electricity_generation_pv = np.sin(np.linspace(0, 2*np.pi, len(timesteps)))

    # --- Define Energy Buses ---
    # Represent node balances (inputs=outputs) for the different energy carriers (electricity, heat, gas) in the system
    flow_system.add_elements(fx.Bus('AC'))

    # --- Define Effects ---
    # Specify effect…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by FBumann
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #275 on July 01, 2025 10:53.