Skip to content

Network Structure

The KPG 193 network data is provided in the MATPOWER format, which is widely used in power system research. This page explains the structure of the MATPOWER network files and how to work with them.

Network Directory Structure

network/
├── m/
│ └── KPG193_ver1_5.m # MATPOWER case file (text format)
├── mat/
│ └── KPG193_ver1_5.mat # MATPOWER case file (MATLAB binary)
└── location/
└── bus_location.csv # Geographic coordinates and names
FileFormatPurpose
KPG193_ver1_5.mmHuman-readable MATPOWER case
KPG193_ver1_5.matmatFaster loading
bus_location.csvCSVGeographic data for visualization

MATPOWER Data Structure

The MATPOWER case file contains all electrical parameters of the power system organized as a MATLAB structure (mpc).

graph LR
    A[KPG193_ver1_5.m/.mat] --> B[mpc structure]
    B --> C[mpc.baseMVA]
    B --> D[mpc.bus]
    B --> E[mpc.gen]
    B --> F[mpc.branch]
    B --> G[mpc.gencost]
    B --> H[mpc.genthermal]
    B --> I[mpc.dcline]

Base MVA (mpc.baseMVA)

The system-wide power base for per-unit calculations.

mpc.baseMVA = 100; % All power values are in units of 100 MVA

Per-unit conversion:

Bus Data (mpc.bus)

Bus data defines network nodes representing substations and load centers. 193 buses total.

Each row represents one bus with 13 columns:

mpc.bus = [
% bus_i type Pd Qd Gs Bs area Vm Va baseKV zone Vmax Vmin ...
1 1 60.1 8.5 0 0 1 1.05 -0.02 154 1 1.1 0.9 ...
2 1 77.9 10.3 0 0 1 1.05 -0.03 345 1 1.05 0.95 ...
...
];
ColumnNameUnitDescription
1bus_i-Bus number (1-193, unique identifier)
2type-Bus type: 1=PQ (load), 2=PV (generator), 3=Slack/Ref
3PdMWActive power demand (real power load)
4QdMVArReactive power demand (reactive power load)
5GsMWShunt conductance (typically 0)
6BsMVArShunt susceptance (typically 0)
7area-Area number (1-5 for regional grouping)
8Vmp.u.Voltage magnitude (per-unit, typically ~1.0)
9VaradVoltage angle (radians)
10baseKVkVBase voltage level (154, 345, 765 kV)
11zone-Loss zone (usually 1)
12Vmaxp.u.Maximum voltage limit
13Vminp.u.Minimum voltage limit

Area definition

The KPG 193 system groups buses into five geographic areas. Each area corresponds to a contiguous range of bus IDs:

AreaRegion (in English)Region (in Korean)Bus ID Range
1Capital Region수도권1-51
2Central중부권52-64
3Gangwon강원권65-95
4Honam호남권96-145
5Yeongnam영남권146-193

Generator Data (mpc.gen)

Generator data defines the characteristics of all 122 thermal generators (coal, LNG, nuclear).

Each row represents one generator with 21 columns:

mpc.gen = [
% bus Pg Qg Qmax Qmin Vg mBase status Pmax Pmin ...
3 880 -46 440 -440 1.0 100 1 880 334 ... % LNG
40 794 169 550 -550 1.0 100 1 1100 440 ... % Coal
82 1000 -38 500 -500 1.0 100 1 1000 950 ... % Nuclear
...
];
ColumnNameUnitDescription
1bus-Bus number where generator is connected
2PgMWActive power output (real power generation)
3QgMVArReactive power output
4QmaxMVArMaximum reactive power capability
5QminMVArMinimum reactive power capability
6Vgp.u.Voltage setpoint
7mBaseMVAGenerator MVA base (typically 100)
8status-Status: 1=online, 0=offline
9PmaxMWMaximum real power capacity
10PminMWMinimum stable generation level

Note: Generator types (Coal, LNG, Nuclear) are indicated in comments at the end of each row in the .m file.

Branch Data (mpc.branch)

Branch data defines transmission lines and transformers connecting buses. 358 AC lines total.

mpc.branch = [
% fbus tbus r x b rateA rateB rateC ratio angle status ...
1 2 0.002 0.018 0.058 904 904 904 0 0 1 ...
2 3 0.0002 0.002 0.208 2172 2172 2172 0 0 1 ...
...
];
ColumnNameUnitDescription
1fbus-From bus number
2tbus-To bus number
3rp.u.Resistance (per-unit)
4xp.u.Reactance (per-unit)
5bp.u.Total line charging susceptance
6rateAMVANormal thermal rating
7rateBMVAShort-term emergency rating
8rateCMVALong-term emergency rating
9ratio-Transformer tap ratio (0 if not a transformer)
10angledegTransformer phase shift angle
11status-Line status: 1=in-service, 0=out-of-service

Cost Data (mpc.gencost)

Generator cost functions define fuel costs and startup costs for economic dispatch and unit commitment.

Each generator has a quadratic cost function:

Where is power output in MW.

mpc.branch = [
% Model startup shutdown n c(n-1) ... c0
2 47398.56 0 3 0.004601045 50.24290385 5213.283648 ; % LNG
2 47398.56 0 3 0.005189187 56.66535106 5879.686989 ; % LNG
...
];
ColumnNameUnitDescription
1Model-Cost model (2 if polynomial)
2startup1,000 ₩Startup cost
3shutdown1,000 ₩Shutdown cost
4n-n-th order polynomial cost function
5c21,000 ₩/(MW)^2Quadratic cost coefficient
6c11,000 ₩/MWLinear cost coefficient
7c01,000 ₩Constant cost coefficient

Thermal Parameters (mpc.genthermal)

Unit commitment parameters including minimum up/down times and ramping limits.

mpc.branch = [
% type_thermal, UT, DT, inistate, initialpower, ramp_up, ramp_down, startup_limit, shutdown_limit, startup1, startup2, startup3, startupdelay1, startupdelay2, startupdelay3
3 4 3 24 880 880 880 880 880 47398.56 52138.416 56878.272 3 6 12 ; % LNG
3 4 3 24 880 880 880 880 880 47398.56 52138.416 56878.272 3 6 12 ; % LNG
...
];
ColumnNameUnitDescription
1type_thermal-Thermal unit flag (3 if default)
2UThourMinimum up time
3DThourMinimum down time
4inistatehourInitial on/off state duration
5initialpowerMWInitial power output
6ramp_upMW/hRamp-up limit
7ramp_downMW/hRamp-down limit
8startup_limitMWStart-up ramp limit
9shutdown_limitMWShut-down ramp limit
10startup11,000 ₩Startup cost (fast)
11startup21,000 ₩Startup cost (warm)
12startup31,000 ₩Startup cost (cold)
13startupdelay1hourDelay threshold for fast start
14startupdelay2hourDelay threshold for warm start
15startupdelay3hourDelay threshold for cold start

DC Line Data (mpc.dcline)

The KPG 193 includes 1 HVDC line connecting Jeju Island to the mainland.

mpc.dcline = [
% fbus tbus status Pf Pt Qf Qt Vf Vt Pmin Pmax ...
51 53 1 0 0 0 0 1 1 -1500 1500 ...
];
ColumnNameUnitDescription
1fbus-From busr number
2tbus-To busr number
3status-Line status: 1=in-service, 0=out-of-service
4PfMWReal power flow at from bus
5PtMWReal power flow at to bus
6QfMVArReactive power flow at from bus
7QtMVArReactive power flow at to bus
8Vfp.u.Voltage magnitude setpoint at from bus
9Vtp.u.Voltage magnitude setpoint at to bus
10PminMWLower limit of power flow
11PmaxMWUpper limit of power flow

Geographic Location Data

The bus_location.csv file provides geographic coordinates and names for all buses.

bus_id,Latitude,Longitude,name_Korean,name_English
1,38.1476054,127.302627,철원,Cheorwon
2,38.0155011,127.0712073,연천,Yeoncheon
3,37.8903061,127.1952799,포천,Pocheon
...
ColumnDescriptionExample
bus_idBus number (1-193)1
LatitudeLatitude in degrees38.1476054
LongitudeLongitude in degrees127.302627
name_KoreanKorean place name철원
name_EnglishEnglish place nameCheorwon