Struggling to solve PowerSystems.Systems

Andrei
Thu, 09 Jan 2025 07:31:52 +0000
General Usage

Hello,
I’m new at Julia programming and currently I’m trying to familiarize myself with instruments to solve OPF and economic dispatch in Julia. I wrote this simple example

github.com

and2002/Julia_powerflow/blob/main/Simple_example

using PowerSystems
using PowerSimulationsDynamics
using DifferentialEquations

solver = Tsit5()  # A commonly used solver for differential equations

# Step 1: Define Limits as MinMax
voltage_limit = (0.9, 1.1)
power_limit = (0.0, 400.0)

# Step 2: Define ThreePartCost
CP = ThreePartCost(
    variable = 1.0,
    fixed = 0.0,
    start_up = 0.0,
    shut_down = 0.0
)

# Step 3: Define Buses
bus1 = ACBus(

This file has been truncated. show original

Numerical data there is mostly random, since I only would like to have 100% working code for future experiments. But I faced with issue:

I validated components individually, seems that they are fine. But I cannot perform working simulation. Can anyone highlight any issue which causes that fault? Or refer me to simple working example.

2 posts - 2 participants