Optimal location and sizing of DG IEEE 33

5/5 - (1 vote)

The optimal location and sizing of distributed generation (DG) units in a power distribution system can be determined using various optimization techniques. One approach is to use a Matlab code to simulate the power distribution system and optimize the placement and size of the DG units to meet certain objectives, such as minimizing losses, maximizing power quality, or maximizing renewable energy penetration.

In the IEEE 33 Bus System, the power distribution system is represented by a network of buses, each representing a node in the system where energy is generated, consumed, or transmitted. The Matlab code can be used to simulate the operation of the system under different scenarios, such as different load patterns, different renewable energy sources, and different DG configurations.

To optimize the location and sizing of DG units in the system, the Matlab code can use an optimization algorithm, such as a genetic algorithm, particle swarm optimization, or linear programming. The optimization algorithm searches for the optimal configuration of DG units that minimizes the objective function, which represents the cost or performance metric of the system.

The Matlab code can also include constraints on the DG units, such as maximum size, maximum power output, and minimum power output. These constraints can be used to ensure that the DG units operate within their technical limits and meet regulatory requirements.

Overall, the Matlab code for the optimal location and sizing of DG units in the IEEE 33 Bus System can be used to analyze and optimize the performance of a power distribution system with distributed generation.

Power Generation Industry

Power generation is an ever-growing industry that has applications in everything from residential to commercial use. One of the most important components of power production is the generator. Generators can be stand-alone units or they may be incorporated into other systems, such as solar panels that have battery storage.

The type of generator you need will depend on your application. Standalone generators are great for producing energy at low demand times, whereas systemized generators are better when high demands for electricity exist.

In this article, we will look at one common type of distributed generation (DG) equipment – photovoltaic (PV) panels! We will also perform some mathematical analysis on a simple circuit using PV cells to determine the optimal placement and size of these cells.

We will assume that the bus bars do not affect the resistance value of the circuit so we will ignore them here. This will make our calculations much simpler because we no longer have to consider what effect they would have on the results!

IEEE grid diagram

This article will apply the theory described in previous chapters to analyze how to maximize the performance of a DG unit. To begin with, we must know where to locate the PV panel(s).

There are two main factors that influence the location of a PV array: potential cost savings and efficiency gains. The first factor evaluates whether it makes more sense to install the PV device close to the load or far away.

Calculate the sizing of the distributed generation unit based on output power and voltage

distributed generation interface to the certs microgrid

The next step in calculating your system’s total cost is to determine how much energy you will need to supply during operation hours. You can use an online tool or software that has computational methods for this.

There are two main ways to do this, by using either active or reactive powers. Active power calculates the amount of electricity being used at any given moment while reactive power looks at the effect of electrical current flowing from one part of the grid to another.

By looking at both active and reactive powers it becomes clear which parts of the grid cannot easily supply power due to resistance or lack of current flow. This is where DG comes into play as they create their own internal current source to compensate!

This article will go more in-depth about these concepts but first, we must talk about voltages.

Calculate the sizing of the distributed generation unit based on output power and current

sunrock distributed generation

Now that you have determined how many units of DG you need, your next task is to determine what size each one should be. This step is important as it can make a difference in whether or not the system will run smoothly!

There are two main factors that influence the performance of your DGs: their active power and their reactive power. The active power is simply the power being produced by the generator, so this would be calculated using equation 2 below. The total amount of active power generated equals the demand for energy times the efficiency of the generator.

As we saw before, the load factor plays an important role in determining the demand for energy, therefore it makes sense to focus more heavily on the efficiency of the generators. Unfortunately, there are no easy ways to find these numbers online, nor do most manufacturers publish them.

Luckily, you don’t have to take our word for it! There are some free software packages such as MATLAB that allow you to simulate different systems and calculate all sorts of information, including efficiency. All you have to do is input the model of the generator and then enter its load and voltage at which it runs under normal conditions (these cannot exceed its limits) and it spits out its efficiency.

You can test several models and pick the best one by comparing the efficiencies it produces! Another way to determine the efficiency of a generator is to look up past data.

Calculate the sizing of the distributed generation unit based on output power and phase angle

generator power distribution

Now that you have determined your cost, efficiency, and reliability parameters, it is time to determine how many units of DG you need to supply energy to the grid!

The next step in determining the size of your solar panel system is calculating the amount of power generated by each module. This calculation is done via what is known as I-V curve testing. The internal voltage drop across the panels will be used to calculate their power.

We can use our earlier results as an example. If one panel produces 1kW then there will be 1000w consumed due to resistance losses within the string. This is why we needed 2kw of series resistance in our calculations before!

To find the total power produced by all strings combine them together using Ohm’s law: Ptotal = V/(I+i) where VT represents the overall string terminal voltage, IO is current through the whole circuit, and i is the internal resistance of each cell (which we already calculated). By solving this equation for IT, we get iplevel=VT/(IO + iT). Plugging these values into our initial formula gives us: Power produced = IV * ln(IPC/IT)/1000

So, if a panel was producing 5 kW then its IPC would be 5 kW / 500 radians*ln(5/0.05)=2190 ohms.

Calculate the sizing of the distributed generation unit based on output power, voltage, and current

advantages of distributed generation

In our previous article, we calculated the overall capacity of this system to serve as a source of electricity for your home or business. This included how much energy the battery can store as well as the solar panel’s efficiency in converting sunlight into electricity. Now that you have all those numbers it is time to calculate where each device will be located to achieve its full potential.

We are going to assume that you already determined what type of batteries would work best for your situation (lithium-ion) and what size of battery you wanted to use. You also determined whether you needed high-performance (fast charging) or more budget-friendly (slower charging) units. If not, then feel free to move on to the next section now!

We are going to focus only on calculating the optimal placement of the battery here so that it produces the most efficient amount of power. Because there are two variables, distance from the distribution bus bar and altitude, there is an infinite number of possibilities to find the optimum location. Luckily, mathematicians have created software that does this for us!

Mathematical tools such as these allow computers to perform complex calculations quickly. These types of programs vary in cost depending on who designed them, but they are worth the expense if you want perfect results every time. Some even have graphical interfaces which make it easy to manipulate the settings and run tests.

Here we will look at one such tool called Energy Analyst by Anker.

Calculate the sizing of the distributed generation unit based on output power, voltage, and phase angle

distributed generation companies

Now that you have determined how many units of DG you need to add to the system, your next step is to determine what size each one should be. This includes deciding where they will run in the grid as well as what efficiency they should have when running. This can be done easily by distributed generation Matlab simulation via the Matlab script and Simulink model.

There are two main factors that influence this: location within the distribution network and string configuration with other generators in the area. The first factor impacts cost while the second factor impacts reliability.

As we discussed before, string configurations refer to connected strings of parallel wires that produce a similar effect as having more powerful transmission lines between them. Having these types of grids reduce the risk of blackouts as there are fewer pieces needed to connect all three phases.

This also means that any losses due to resistance from connecting too many cables together can lower the overall effectiveness of the system. It is best to try and stay away from highly populated areas or stations so that the connection does not affect the surrounding infrastructure negatively.

The second factor comes into play once again by looking at the costs associated with different locations. Power plants that use natural gas typically cost around $20 per MMBTU (million British thermal units) to run, which makes it expensive to just turn off during times of low demand.

This is why some plants are paid to constantly run even when energy demands are down- they supply power for free! Since most homes now have electricity supplied through utilities, finding an appropriate place to install your own generator is important.

Compare the results of each of the above methods

distributed generation system matlab

It is important to remember that not only does adding distributed generation influence where you get power, but it also changes how much power you generate at any given time.

By using different locations for the DG generators, you can find different optimal solutions in terms of cost. Try experimenting with all three to see which one gives you the best balance between lower costs and more power generated during peak times.

Calculate the sizing of the distributed generation unit based on power, voltage, and current using MATLAB

In this section, we will use our installed generator as an example to determine how to size your grid-connected solar panel or wind turbine. To do this, you should first know what the nominal output is for the device. This is usually given in watts (for solar) or kilowatts (for wind turbines). A watt is really just a measure of energy so one can also say that it is dependent on time multiplied by volts times amps.

So if we take the sun’s power at its zenith during the middle of summer when the rays are strongest, then we can calculate how much electricity it would produce at that moment assuming there were no clouds or other factors preventing light from reaching the surface of the panel!

We will assume 1,000 Watts is the average midday maximum power production for a typical monocrystalline silicon photovoltaic module with 25% efficiency. Since these modules have both positive and negative electrodes, they actually generate a little less than half of a full cell but we will ignore this difference for now. Also, note that since we are talking about energy here, not instantaneous power, we need to multiply by time to get actual energy generated.

Now let us look at the system parameters needed to perform these calculations. The active load is defined as the loads being powered by the DG units which include all electronics such as inverters, controllers, etc. As well as resistive losses in the wires running to the devices themselves.

Calculate the sizing of the distributed generation unit based on power, voltage, and phase angle using MATLAB

optimal placement of distributed generation matlab code

To determine how many units of DG you need to install in order to meet your demand for electricity, we first need to know what our demand is for energy.

We use an equation called the Power Demand Equation (PDE) to calculate this value. The PDE calculates the total amount of power that will be consumed by all devices connected to the grid in a given time period.

The duration of the time period used in the calculation of the PDE is usually one hour, which makes it appropriate to use when calculating the demands on an hourly or daily basis.

In our case, we are looking at the demands per month so we will have to make the time period longer. We pick one day as our time frame due to consistency. One week would also work but would require more calculations because there would be fewer data points involved.

Contact us to get the optimal placement of distributed generation Matlab code.

643 thoughts on “Optimal location and sizing of DG IEEE 33”

  1. sir i m doing placement of dg and dstatcom in transmission line using particle swarm optimization technique with the help of voltage stability index[which find weak bus by r/x ratio].
    sir i rally need matlab code for this. i have codes but they are not executing properly and stuck and bibc and bcbv concept in matlab.
    pls sir if u have the code mail on my email address:
    arunimasupriya@gmail.com

  2. Sir,

    Would you be so kind to send the MATLAB file for the voltage and switching status data? A code from which I can generate the data myself is also very helpful. If it is a simulink file that would be fine. My email is: lindeboom.bas@gmail.com

    Thank you in advance!

  3. Dear sir,

    Can you please send me this code? I need it for my final project.

    My e-mail: apenava1@etf.unsa.ba

    If you could also send me a code for Optimal Placement and Sizing of DG and Capacitor Banks when they are used simultaneously, I would appreciate it very much.

    Thank you in advance.
    Best regards.

  4. Sir if possible please send the matlab code and related matter regarding to Optimal location and sizing of DG IEEE 33 Bus System Matlab Code Explanation.

  5. Sir if possible please send the matlab code and related matter regarding to Optimal location and sizing of DG IEEE 33 Bus System Matlab Code Explanation.
    mail id-pk141094gmail.com
    thnx in advance

  6. Dear Sir,
    I prepared MatLab code on Optimal Location and Sizing of DG for IEEE 33 bus system with the help of your Matlab online video.
    I am unable to get the proper results.
    Can you please rectify my code and revert me back?
    I shall be highly obliged to you.
    Thanking you

  7. Here is Mr Benjamin contact Email details,lfdsloans@outlook.com. / lfdsloans@lemeridianfds.com Or Whatsapp +1 989-394-3740 that helped me with loan of 90,000.00 Euros to startup my business and I'm very grateful,It was really hard on me here trying to make a way as a single mother things hasn't be easy with me but with the help of Le_Meridian put smile on my face as i watch my business growing stronger and expanding as well.I know you may surprise why me putting things like this here but i really have to express my gratitude so anyone seeking for financial help or going through hardship with there business or want to startup business project can see to this and have hope of getting out of the hardship..Thank You.

  8. P=bdata(:,2);
    Q=bdata(:,3);
    se=ldata(:,1);
    re=ldata(:,2);
    r=ldata(:,3);
    x=ldata(:,4);
    nbus=max(max(se),max(re));
    nbr=nbus-1;
    bPl=zeros(nbus,1);
    bQl=zeros(nbus,1);
    bPl=( P/bmva )*(1/1000); % In MW p.u
    bQl=(Q/bmva )*(1/1000); % In MVAR p.u
    bPlbefore=bPl;
    bQlbefore=bQl;
    % sending changed values as input argument to subfunction
    [tploss,tqloss,vm,va,linelosses]=loadflowbus(bPl,bQl,se,re,r,x,nbus,bmva,bkv);

    Sir Iam having error over here could you please help me.

  9. P=bdata(:,2);
    Q=bdata(:,3);
    se=ldata(:,1);
    re=ldata(:,2);
    r=ldata(:,3);
    x=ldata(:,4);
    nbus=max(max(se),max(re));
    nbr=nbus-1;
    bPl=zeros(nbus,1);
    bQl=zeros(nbus,1);
    bPl=( P/bmva )*(1/1000); % In MW p.u
    bQl=(Q/bmva )*(1/1000); % In MVAR p.u
    bPlbefore=bPl;
    bQlbefore=bQl;
    % sending changed values as input argument to subfunction
    [tploss,tqloss,vm,va,linelosses]=loadflowbus(bPl,bQl,se,re,r,x,nbus,bmva,bkv);
    Sir iam having error over here could you please help me.

  10. Hello sir, I am working on Optimal placement of Phasor measurement unit in IEEE 14 bus system using PSO algorithm. Sir, Can you please tell me how to write objective function and constraints in matlab code directly from the bus data. Please sir help me. thank you sir.

  11. Hi sir,
    could you please let me know how to formulate the distributed algorithms like sub gradient algorithm in matlab, i'm new to matlab and i dont know how to write the code. Kindly suggest me how to proceed.

    Thanks
    Rahul Ravi

  12. Dear sir would you please send me the matlab code for Optimal location and sizing of DG IEEE 33 Bus System.

    mail:-phani29646@gmail.com

  13. Resp sir,
    i am very impressed by your work.You have super coding skills sir. You are amazing. Sir, can you please share your code with me, my email id is pakilvish@gmail.com.
    thanking you in advance sir, thankyou very much.

  14. Hello just wanted to give you a quick heads up. The text in your content seem to be running off the screen in Safari. I'm not sure if this is a formatting issue or something to do with internet browser compatibility but I thought I'd post to let you know. The design and style look great though! Hope you get the problem fixed soon. Thanks

  15. sir would you send me matlab code for Optimal location and sizing of DG IEEE 33 Bus System please .email:rozgol729@yahoo.com
    plz i need

  16. HOW I GO MY DESIRED LOAN AMOUNT FROM A RELIABLE AND TRUSTED LOAN COMPANY LAST WEEK. Email for immediate response: drbenjaminfinance@gmail.com Call/Text: +1(415)630-7138 Whatsapp +19292227023

    Hello everyone, My name is Mr.Justin Riley Johnson, I am from Texas, United State, am here to testify of how i got my loan from BENJAMIN LOAN INVESTMENTS FINANCE(drbenjaminfinance@gmail.com) after i applied Two times from various loan lenders who claimed to be lenders right here this forum,i thought their lending where real and i applied but they never gave me loan until a friend of mine introduce me to {Dr.Benjamin Scarlet Owen} the C.E.O of BENJAMIN LOAN INVESTMENTS FINANCE who promised to help me with a loan of my desire and he really did as he promised without any form of delay, I never thought there are still reliable loan lenders until i met {Dr.Benjamin Scarlet Owen}, who really helped me with my loan and changed my life for the better. I don't know if you are in need of an urgent loan also, So feel free to contact Dr.Benjamin Scarlet Owen on his email address: drbenjaminfinance@gmail.com BENJAMIN LOAN INVESTMENTS FINANCE holds all of the information about how to obtain money quickly and painlessly via Whatsapp +19292227023 Email: drbenjaminfinance@gmail.com and consider all your financial problems tackled and solved. Share this to help a soul right now, Thanks..

  17. HOW I GO MY DESIRED LOAN AMOUNT FROM A RELIABLE AND TRUSTED LOAN COMPANY LAST WEEK. Email for immediate response: drbenjaminfinance@gmail.com Call/Text: +1(415)630-7138 Whatsapp +19292227023

    Hello everyone, My name is Mr.Justin Riley Johnson, I am from Texas, United State, am here to testify of how i got my loan from BENJAMIN LOAN INVESTMENTS FINANCE(drbenjaminfinance@gmail.com) after i applied Two times from various loan lenders who claimed to be lenders right here this forum,i thought their lending where real and i applied but they never gave me loan until a friend of mine introduce me to {Dr.Benjamin Scarlet Owen} the C.E.O of BENJAMIN LOAN INVESTMENTS FINANCE who promised to help me with a loan of my desire and he really did as he promised without any form of delay, I never thought there are still reliable loan lenders until i met {Dr.Benjamin Scarlet Owen}, who really helped me with my loan and changed my life for the better. I don't know if you are in need of an urgent loan also, So feel free to contact Dr.Benjamin Scarlet Owen on his email address: drbenjaminfinance@gmail.com BENJAMIN LOAN INVESTMENTS FINANCE holds all of the information about how to obtain money quickly and painlessly via Whatsapp +19292227023 Email: drbenjaminfinance@gmail.com and consider all your financial problems tackled and solved. Share this to help a soul right now, Thanks..