Posts

Showing posts from December, 2023

Unit Commitment and Economic Dispatch - UC & ED by Salp Swarm Algorithm (SSA) MATLAB Code

Image
 Hello, brothers, so we want to explain the code of, SSA for, unit commitment and economic dispatch. So the first thing is to, uh, the, the function. will, indentify some parameters like, initial, t on, initial t off as you see here, there is the first two generate on, and the other is off, and this is the initial t of time. unit outages time. So, the other, eight , units is off and, this is the minimum, uh, minimum down and minimum uptime allowed for to continuous, boot time or continuous shutdown time. And this is the initial stage for each generation. As you see here, the first two generation is on in the first of this period. And the period is for 24 hours. And after that, we define the power max for each generation and, power minimum for each generation. And then we define the, the power demand for 24 hours. And after that we calculated the spinning reserve and then, we define the, the wind power of this file and define the velocity V cutt on cutt off, and the normal velocity ...

Grid New 33 Bus PV Wind - STATCOM MATLAB Simulation

Image
 This is the project in simulink. It is now compiling. You can see that there is no warning in this file and now it will, I can show you that this is the 33 bus system. I connect wind farm or wind project to this bus path and also I connect the solar project to this bus bar and connect the STATCOM project to this bus bar. Based on your request it is connected. All of these projects to one of the selected busses, so it is bus 22 to where you can see all of them are connected and working with the STATCOM the wind farm and also the solar project wind farm is 2 megawatt doubly fed induction generator (DFIG) wind turbine the statcom is for compensating of reactive power it is +-3MW and PV that is point 4 or point five megawatts. These are the signal of a screen that would show you the signal output after the simulation, you can see that the output of the one of the Scopes power, current voltage is flowing from. And you can see that this is the slack bus top of the figure of this model. ...

Economic Dispatch and Demand Response of Microgrids MATLAB Code

Image
 Hi, brother. We now will explain the code for economic dispatch and demand response using particle swarm optimization in MATLAB. This code Contain five files. Each file makes some functions. The first thing we will load the input data, the input data file contain the solar profile and wind profiles for the case one.   And after that, we decide the number of decision variables. The decision variables, contains three generations, and the power from the network and the power demand response from the customer, three customers for generation, from 1 to 3 and the network power and the customer from 1 to 3. And after that, we define the minimum, a minimum for each and decision variables or for each generation and maximum for each generation and customers after define maximum and minimum regions.   Also, we define the ramping upper ramp and down ramp for each generation and the maximum iteration number of iteration 600 and the population size or swarm three hundreds. Aft...