Asignment - 2 (Aitee) B20ee101
Asignment - 2 (Aitee) B20ee101
the fuzzy rule base, membership functions, and sample MATLAB code for simulating
a two-area LFC system with a fuzzy-PI controller:
• Δf (Change in Frequency): Negative Big (NB), Zero (ZE), Positive Big (PB)
• ΔPtie (Change in Tie-Line Power): Negative Big (NB), Zero (ZE), Positive
Big (PB)
The output variable is ΔΔUref (Change in reference change of governor control
signal) for each area.
Rule Base Table:
NB NB NB PB PB
NB NB ZE PB PM
NB NB PB PB PS
PB PB NB NB NB
PB PB ZE NM NB
PB PB PB NS NB
Matlab
% Define membership functions (example)
Δf_NB = triangularMF(-2, -3, -1);
Δf_ZE = triangularMF(-1, 0, 1);
Δf_PB = triangularMF(1, 3, 2);
3. Fuzzy-PI Controller:
The fuzzy controller outputs a correction term (ΔUref_fuzzy) that is added to the
reference signal (Uref) of the PI controller. The PI controller output (Uref_PI) is then
used to adjust the governor control signal.
This code provides a basic structure for simulating the two-area LFC system with a
fuzzy-PI controller. It defines the fuzzy rules, membership functions, and simulates
the system response to a load disturbance.
Matlab
% Define fuzzy variables and membership functions (as shown in point 2)
This code provides a starting point for simulating a two-area LFC system with a
fuzzy-PI controller in MATLAB. You'll need to fill in the details of the Simulink model
development and integrate the fuzzy controller logic within the simulation
environment.
2. Write a suitable MATLAB code for the optimal placement of FACTS devices using Genetic Algorithm
(GA) (Consider an IEEE30 bus system for the problem formulation and calculation).
Determine the following:
1. Find the optimal location of FACTS devices.
2. Generate the cost coefficients of individual generators.
3. Calculate the total losses in the system with and without FACTS devices.
Ans:
MATLAB code outline for optimal placement of FACTS devices using a Genetic
Algorithm (GA) on an IEEE30 bus system:
Matlab
% 1. Load IEEE30 bus data
busdata = readcase('ieee30');
Explanation:
1. The code loads the IEEE30 bus data.
2. Functions are defined to calculate bus power injections, power flow, and total
losses.
3. GA parameters and chromosome representation are defined.
4. The code initializes a random population of chromosomes.
5. A fitness function evaluates each chromosome by simulating the power flow
with FACTS devices placed based on the chromosome and calculating total
losses (minimized).
6. The GA loop iterates, performing selection, crossover, and mutation to evolve
the population towards optimal solutions.
7. The best chromosome represents the optimal placement of FACTS devices.
8. Cost coefficients require additional power system analysis (not included here).
9. The code calculates total losses with and without FACTS devices using the
defined functions.
P.SUSHMA
B20EE101