Está en la página 1de 10

PRÁCTICA 1:

Flujo de cargas

Alicia Triviño Cabrera


Dpto. Ingeniería Eléctrica
RED ELÉCTRICA A ANALIZAR:
ESPECIFICACIÓN EN MATPOWER:

Hay que definir las variables siguientes:

 baseMVA

 bus

 gen

 branch Son matrices

 areas

 gencost
ESPECIFICACIÓN EN MATPOWER: matriz bus

Matriz con n filas siendo n el número de nudos del sistema


bus data
% bus_i type Pd Qd Gs Bs area Vm Va baseKV zone Vmax Vmin

Potencias Admitancia Tensión


consumidas de shunt magnitud/ángulo

TIPOS:

1 -> PQ
2 -> PV
3 -> slack
ESPECIFICACIÓN EN MATPOWER: matriz gen

Matriz con nG filas siendo nG el número de generadores del sistema

%% generator data
% bus Pg Qg Qmax Qmin Vg mBase status Pmax Pmin

Si es mayor que =
es que está
operativo
ESPECIFICACIÓN EN MATPOWER: matriz branch

Matriz para especificar las líneas y los transformadores

branch data
fbus tbus r x b rateA rateB rateC ratio angle status

From to Potencia máxima 1 operativo


0 en las líneas
Long term 0 no operativo
Short term
Emergency
ESPECIFICACIÓN EN MATPOWER: matriz areas

%% area data
areas = [1 1;];
ESPECIFICACIÓN EN MATPOWER: matriz gencost

Generator Cost Data Format


NOTE: If gen has n rows, then the first n rows of gencost contain
the cost for active power produced by the corresponding generators.
If gencost has 2*n rows then rows n+1 to 2*n contain the reactive
power costs in the same format.
1 model, 1 - piecewise linear, 2 - polynomial
2 startup, startup cost in US dollars
3 shutdown, shutdown cost in US dollars
4 n, number of cost coefficients to follow for polynomial
cost function, or number of data points for piecewise linear
5 and following, cost data defining total cost function
For polynomial cost:
c2, c1, c0
where the polynomial is c0 + c1*P + c2*P^2
For piecewise linear cost:
x0, y0, x1, y1, x2, y2, ...
where x0 < x1 < x2 < ... and the points (x0,y0), (x1,y1),
(x2,y2), ... are the end- and break-points of the cost function
EJECUCIÓN

[results,success]=runpf(‘Mifichero')

Los resultados están en la estructura results.

results =
Para acceder a uno de los componentes, hago:
struct with fields:
results.componente
version: '2'
baseMVA: 1000 Ejemplo:
bus: [3×13 double]
gen: [2×21 double] results.bus
branch: [3×17 double]
areas: [1 1]
gencost: [2×7 double]
order: [1×1 struct]
et: 0.9630
success: 1
iterations: 4
EVALUACIÓN DE LOS DISTINTOS TIPOS DE RESOLUCIÓN

results = runpf(‘Mifichero', mpoption('pf.alg',‘OP'))

Algoritmos soportados:

OP: NR  Newton-Raphson
GS  Gauss-Seidel
FDXB  Fast-Decoupled XB
FDBX  Fast-Decoupled BX

También podría gustarte