manual
Relevant code resource address: generation of wind, light, and load scenarios; wind power output scenarios and probabilities; photovoltaic output scenarios and probabilities; load scenarios and probabilities; scenario reduction; sample probability initialization; sample reduction
MATLAB code: analysis of the impact of distributed power access on distribution network
Key words: distributed power distribution network evaluation
Simulation platform: MATLAB
Main content: The main content of the code is the analysis of the impact on the operation of the distribution network in the scenario of distributed power access. Among them, you can set the location where the distributed power is connected to the distribution network, the active power and reactive The size of the work and power, through the Newton-Raphson method to solve the grid power flow after the distributed power supply is connected, so as to evaluate whether the voltage, line flow and other parameters before and after the distributed power supply have changed, and evaluate the operation mode of the distribution network. The code is very high-quality, and it is an essential program for researching power flow calculations with distributed power access!
function [baseMVA, bus, gen, branch, areas, gencost, info] = loadcase(casefile)
%LOADCASE Load .m or .mat case files or data struct in MATPOWER format
%
% [baseMVA, bus, gen, branch, areas, gencost] = loadcase(casefile)
% [baseMVA, bus, gen, branch, gencost] = loadcase(casefile)
% [baseMVA, bus, gen, branch] = loadcase(casefile)
% mpc = loadcase(casefile)
info = 0;
if nargout < 3
return_as_struct = true;
else
return_as_struct = false;
end
if nargout >= 5
expect_gencost = true;
if nargout > 5
expect_areas = true;
else
expect_areas = false;
end