Skip to content

KPG Run Overview

KPG Run is a cross-platform desktop application that provides an intuitive interface for solving various power system optimization problems. It integrates production-grade solvers into a modern, user-friendly UI and includes built-in tools for visualizing optimization results. KPG Run also exports standardized result files that can be opened in KPG View.

flowchart LR
    A["Test System Data"] --> C["KPG Run GUI"]
    B["User Configuration"] --> C
    C --> D["Solver Selection"]
    D  --> |Simple| E["Economic Dispatch"]
    D -- Scheduling --> F["Unit Commitment"]
    D -- Network (DC) --> G["DC-OPF"]
    D -- Network (AC) --> H["AC-OPF"]
    E --> I["Results"]
    F --> I
    G --> I
    H --> I
    I --> J["Visualization"]

Test System Data

KPG Run solves the power system optimization problems with KPG 193 test system data and visualizes the key results. KPG 193 is a synthetic Korean transmission grid model constructed from publicly available data and intended as a benchmark for studies of the Korean power system.

→ KPG Test System Details

Available Optimization Models

KPG Run includes four optimization models covering a range of power system analysis needs:

1. Economic Dispatch (ED)

Simplest model for cost-minimized generation dispatch without network constraints.

  • Type: Linear Programming / Quadratic Programming (LP/QP)
  • Solver: Gurobi
  • Use Cases:
    • Screening studies
    • Teaching examples
    • Quick dispatch analysis
    • Merit order calculation

→ ED Formulation Details


2. Unit Commitment (UC)

Day-ahead scheduling with generator commitment decisions and temporal constraints.

  • Type: Mixed-Integer Linear Programming (MILP)
  • Solver: Gurobi
  • Use Cases:
    • Day-ahead market clearing
    • Multi-period scheduling
    • Reserve requirement planning
    • Startup/shutdown optimization

Key Features:

  • Minimum up/down time constraints
  • Startup and shutdown costs
  • Ramp rate limits
  • Reserve requirements
  • 24+ hour optimization horizons

→ UC Formulation Details


3. DC Optimal Power Flow (DC-OPF)

Network-constrained dispatch using linearized power flow equations.

  • Type: Linear Programming / Quadratic Programming (LP/QP)
  • Solver: Gurobi
  • Use Cases:
    • Market simulation
    • Locational marginal price (LMP) calculation
    • Congestion analysis
    • Fast multi-scenario studies

Key Features:

  • Transmission line limits
  • Angle difference constraints
  • Network topology representation
  • Congestion rent calculation
  • Fast solution times

→ DC-OPF Formulation Details


4. AC Optimal Power Flow (AC-OPF)

Full AC power flow with voltage and reactive power considerations.

  • Type: Nonlinear Programming (NLP)
  • Solver: Ipopt
  • Use Cases:
    • Detailed feasibility analysis
    • Voltage stability assessment
    • Reactive power planning
    • Accurate loss calculation

Key Features:

  • AC power flow equations
  • Voltage magnitude constraints
  • Reactive power limits
  • Generator capability curves
  • Transmission losses

→ AC-OPF Formulation Details


Custom Solvers

KPG Run supports custom solver implementations written in Julia.

Existing solver .jl files can be used as templates to understand the expected KPG Run configuration and interface. By following the same structure and conventions, users can implement their own custom solvers and run personal optimization models through KPG Run.

For details on using Julia and JuMP, refer to the resources listed below.

Model Comparison

FeatureEDUCDC-OPFAC-OPF
Problem TypeLP/QPMIPLP/QPNLP
Network ModelNoneNoneDCAC
Time PeriodsSingleMultipleSingleSingle
CommitmentContinuousBinaryContinuousContinuous

→ Detailed Solver Comparison

Key Features

User-Friendly Interface

  • Intuitive GUI with clean, modern design
  • Real-time solver output streaming to console
  • Parameter validation before solving
  • Status indicators for running optimizations
  • Result summarization with key metrics

→ Detailed Interface Guide

Configuration

  • Test system selection from available datasets
  • Day selection from annual profiles (1-365)
  • Period configuration for multi-hour UC
  • Solver options including time limits and tolerances (planned)
  • Result storage for workflow chaining

Integrated Production-Ready Solvers

  • Ipopt (open-source)
  • Gurobi (commerical)
  • KNITRO (commerical)

Workflow Integration

  • Chain solvers (UC → OPF) using stored results (planned)
  • Batch processing for multiple scenarios (planned)
  • CSV export for external analysis
  • GeoJSON generation for KPG View visualization

Installation Guide

System Requirements

  • Operating System: macOS 10.15+ (Windows 10+ /Linux support planned)
  • Julia: 1.11.2+
  • Memory: 8GB RAM minimum, 16GB recommended
  • Storage: 2GB for application and data

→ Detailed Installation Guide

Getting Started

  1. Launch KPG Run
  2. Choose “KPG193 v1.5” test system
  3. Select “DC-OPF” as solver type
  4. Select Day 1 from profiles
  5. Click “Solve” and watch the console output
  6. View results in the Results tab

→ Getting Started with KPG Run