Lecture 09

IIT Kanpur July 201
20 followers
Oct 22, 2023
Hello and good morning everyone, so welcome you all for the NPTEL online course on Economic
Cooperation and Control of Power System.
So in today's class we will try to discover one of the most fundamental primitive economic
dispatch problem solved using linear programming method.
So linear programming is very capable of handling inequality constraints as long as the problem
to be solved in such that it can be linearized without loss of accuracy.
How the economic dispatch problem can be structured as a linear program is explained below.
Let us say first the non-linear input output characteristics output or cost functions are
expressed as a set of linear functions.
So start with a non-linear cost function as shown in the following figure.
Let us take a specific generator which has a non-linear characteristic curve as it looks
like this right and it has its minimum generation, it has its minimum generation and a maximum
generation point, thresholds are being given.
And now how can we linearize such that and how much should be the number of segments
that one should choose so that the result one who get by solving this using linear programming
method will be much more accurate and closer to the realistic solution right.
Let us say we can approximate this non-linear function as a series of straight line segments
as shown in figure below.
Now this is the non-linear curve.
Now let us say I will take three segments.
This is the segment number I1, this is I1, this is segment number I2 and this is segment
number I3 right.
And now it was earlier non-linear function, now you will have three linear functions.
Now you can solve easily these three linear functions and let us say the PI variable is
replaced with three new variables.
That means the total generation from PI minimum, this is PI minimum to PI maximum is now split
into three parts, Ith generator, the generation of Ith generator and the segment 1.
This is P gen I1 right and for the Ith generator, the second segment which is P gen I2.
And for the third generator, it is P gen I and each segment will have a slope designated
as SI1.
Now this is a slope for the first segment.
The first segment slope is SI1.
This is SI1 and the second segment slope is SI2 right and the third segment slope is SI.
You can see here easily the slope increases from segment 1 to segment 3.
That means SI1 is less than SI2 and which is less than SI3.
And the cost function itself is now represented as the sum of the cost at PI minimum plus
the sum of the linear cost for each segment which is simply its slope times the PIJ variable.
That means the total cost of the Ith generator right is the total cost with respect to the
Ith generator at its minimum generation PI, P minimum of the Ith generator plus the slope
1 which is SI1 into P generation I1.
That means the Ith generator segment 1 whatever the power generation that is taking place.
It is very simple also.
You can see what is slope.
Slope is nothing but Y by X right.
Slope is nothing but Y by X mathematically which is nothing but DF by DP or F by P whatever
you can take.
This into generation again you will get the slope only, the cost only.
DF by DP into generation will give you the cost.
That means the cost of the Ith generator at segment 1.
Next this is the cost of the Ith generator at segment 2.
You can call it as FI2 let us say for simplicity.
And this is the cost of, this whole function will give the cost of Ith generator at segment
3 right.
And given the condition the Ith generator Kth segment, the power output should be within
the range of 0 to the Ith generator minimum power at K plus 1 segment.
That means let us say you can easily identify from this picture also that this is the minimum
P gen I2 minimum.
This is also same as P gen I1 maximum right.
So the generation of the first segment of the Ith generator lies between the range of
0.
Let us say this is 0 point, this is starting point between 0 to P gen I2 minimum or P gen
I1 maximum.
That is what is been mentioned here.
So this is applicable for all the segment.
Now and finally what is the total generation?
The total generation of the Ith generator is nothing but the minimum generation that
means P gen I minimum plus the first segment generation which is P gen I, P gen I1 plus
P gen I2 plus P gen I3.
And what is the slope here?
The slope is nothing but the Y by X, the Y by X is nothing but the change in fuel cost
from I plus 1th generator segment, K plus 1 segment to K segment of that Ith generator.
That means let us say the generation which is taking place of the Ith generator at K
plus 1 instant, K plus 1 segment minus the fuel cost taking place for the same generator
at Kth segment.
This is the change in fuel cost divided by the change in generation.
The change in generation is the generation which is taking place at K plus 1 instant
or segment minus the generation which is taking place at Kth segment.
Now the cost function is now made up of a linear expression in the three variables P
gen I1, P gen I2 and P gen I3.
Because the slopes increase in value, the linear program will cause P gen IK to be at
its limit that means P gen IK maximum or P gen IK plus 1 minimum.
This is same as P gen IK plus 1 minimum before P gen IK plus 1 increases beyond 0.
That means for each segment we are considering it to be it has its own 0 limit and a maximum
limit.
Now the linear programming solution of the economic dispatch can be written as, now this
is the objective function you have.
You have to minimize the total fuel cost of all the generators from I to N, I is equal
to 1 to N which is same as its minimum fuel cost, the fuel cost which is happening at
the minimum generation plus the total fuel cost happening at the different segments.
And this is the condition, the generation should be within its 0 to maximum limit.
And finally, the total generation P I is equal to P I minimum plus P gen I1 plus P
gen I2 plus P gen I3 for all generators I is equal to 1 to N and subject to summation
of I is equal to 1, 1 to N P I is equal to P load.
That means the individual generator power output is equal to the power output at different
segments of that particular generator plus its minimum.
And if you add all such generators which has so many segments of power generation,
if you add all of them and that should be equal to the total load, that should be equal
to the total load.
Right?
Now together with the linear programming, linear cost function there will be three generation
equations to capture the value of the generator as a function of the segment powers that is
three equations of the type.
This is what you get.
I am just summarizing.
The generation of Ith generator is nothing but the minimum generation of the Ith generator
plus their individual segments.
Here we are considering three segments.
It could be 100 segments and there will be one equation to force the total generation
to equal the load which is total generation is equal to total load of all the generators.
Now let us take an example.
Let us say there are three generators and they are supplying 850 megawatt of load.
Now their ABC constants or coefficients have been given.
Their minimum generation, maximum generation is also given.
In the succeeding table, 1, 3, 5, 10 and 50 segments for each cost function are used.
We have solved using different segments to see what is the impact of variation in the
segments on the results that we get.
It can be observed that the solution closes on the same solution as the number of segments
increases.
It is obvious.
As the number of segments increases, then you make a close approximation to the non-linear
curve using linear segments and then the highest number of segments chosen will ensure
that you will get a closely accurate result.
For the first segment, the total cost was coming out to be 82227.870 but if you see
at the 50th segment, it is coming out to be 8194.357 and this result is also compared
with the lambda search method which we are going to discuss and that is in closer to
this lambda search method.
So depending on the number of segments used, the solution will differ from that obtained
using the standard method.
Increasing the number of segments does not necessarily, this is a very important statement,
this does not necessarily bring the solution closer to the exact solution.
Just before few seconds, I told that as you increase the number of segments, the solution
will be closer to the accurate value but it also depends like where is the true solution
lying upon.
For example, if you say this is the curve, right, this is the non-linear curve.
Now you can, let us say I will divide it into one segment only.
Let us take another example where I will divide it into two segments.
Let us take another example where I divide it into three segments.
I will just divide it, one, let us say this is second and this is third and it may come
like this, right.
So now you see, let us say the exact solution, of course the linear approximation, the results
that you get is the intersection point between the linear curves with the actual curve, right.
Now in the case of the first case where there is only one linear approximation, only one
linear segment is there, then you have two intersection points.
Here you have two intersection points.
In the case of second approach where we considered solving the same problem with two segments,
two linear approximations, then you have how many, yes, you have three intersecting points.
In the case of three approximations, three linear approximations, then how many points
you get, intersection points, one, two, three, four.
Now let us say your true solution is lying somewhere here.
This is the true solution, let us say.
Now if you compare between two segments and three segments, in the three segments, three
intersecting points, that means two segments, three intersecting points, you see for the
two segment case, two linear approximation case, the result is closer.
You see here, the result is closer compared to that one segment or two intersecting points
where the result is far away.
Now whereas in the case of three segments or four intersecting points, you see this
solution may be little far away from the solution that you get, either this solution or this
solution point, this is far away from the actual true solution.
That may be closer to the case where there was the solution obtained using just two linear
segment analysis.
You understand?
It depends upon where your solution lies.
And if you further increase, it may be even closer or even it may be further.
But one thing is for sure, if you have more segments, if you increase the segments to
100 or 150, then there is a very high chance that the true solution, wherever it may lie
within the plane, you will get a closer value with respect to the true.
As the number of segments is increased to 5 and 10 and even 50, the solution comes very
close to the exact solution.
Three generators are supplying, let us take another example, where three generators are
supplying 850 megawatt of load.
Now calculate the most economical power generation plan using linear programming.
Now this is the network topology where you have three buses and you have a generator
and load present at different buses.
And at each bus, between each bus there is a line and it has its own thermal capacity.
That means the maximum power that you can exchange between these two lines, these two
segments could be 150 megawatt.
This is not P1 to maximum, this is P2 to 3 maximum.
This is 150 megawatt.
Now assume the reference bus to be bus number 1, this is bus number 1 or slack bus you can
consider to be as bus number 1 and the MVA system base to be 100 MVA.
This is a base MVA.
Now this is your line flow constraint and this line flow constraint should be less than
or equal to Pij maximum, the maximum capacity.
How do you get this?
I hope you are all remembering this equation.
Power is nothing but E into V by X into sin of theta i minus theta j or Pij is equal to
Ei into Vj divided by Xij sin of theta i minus theta j.
This is absolute value.
That means if theta i is greater, then power flows from bus i to bus j.
If theta j is greater, then power flows from bus j to bus i.
Now you see here, we are speaking in terms of per unit.
That means at per unit, let us say voltage are at 1 per unit.
That means you will get 1 into 1, 1 by Xij.
In real sense, the phase angle between any buses is close to 0.
The voltage profile will be closer to 1 per unit whereas the phase angle will be close
to 0.
So we can approximate because sin function for a very small values, sin of theta i minus
theta j will be almost equal to just theta i minus theta j.
The value you get for evaluating sin of theta i minus theta j will be closer to the value
of just theta i minus theta j.
Now what you get here, ultimately 1 by Xij absolute value of theta i minus theta j.
Now this is the per unit value.
Now if you want the actual value, what you will do?
The base is nothing but, how do you calculate per unit?
The per unit of any system is actual by base.
Now the base we have considered 100 MVA.
Now you need to go have the actual value.
That means actual is nothing but per unit into base.
So you will get 100 divided by Xij into absolute value of theta i minus theta j.
Now this is the line flow constraint and this should be less than or equal to Pij maximum,
that particular threshold.
Now the problem becomes minimizing the cost of all the generators, which includes the
fuel cost at the minimum generation plus the fuel cost at different segments, subject to
this is the constraint.
The constraint is 100 into BX into theta is equal to Pj minus P load.
1 by Xij is nothing but susceptance.
That is B, BX.
And theta i minus theta j is represented as just theta.
And that should be equal to the difference between generation and load.
That is what is going through the line.
And total generation of ith generator is nothing but the generation at its minimum power plus
generation at different segments, where the generation of that ith generator at specific
segment should be less than or equal to the minimum generation at the k plus 1 segment.
And ith generator has its own minimum and maximum capacity of generation.
So alternatively, line flow can be limited by incorporating a slack variable.
That means, so if you see here, 100 by X12 theta 1 minus theta 2, this is the line flow
constraint.
This should be less than or equal to, let us say, this should be less than or equal
to specific limit.
That is what we are given is mod of 150 megawatt.
That means, this varies from minus 150 to the power carrying capacity of a line is within
the range of minus 150 to plus 150.
This is plus 150, right, of that specific generator, specific line.
Now that means, now we can make it as a inequality constraint.
You can just make it like look like a equality constraint.
How do you do it?
Just introduce another variable, random variable.
So line segment, the constraint plus this slack variable is equal to 150.
If you make it is equal to 150, then what happens, where S12 lies between 0 to 300.
If you put S12 as 0, then you will get the maximum threshold, which is 150.
If you keep the maximum value of this slack variable, which is 300, then you would get
the line constraint should be is equal to minus 150.
So that the overall line constraint will be within the range of minus 150 to plus 150.
Now if you solve the solution to the linear program with 10 segments and including line
flow limit, you will get this results.
What is the conclusion?
The linear programming can be built with all line flow constraints built into it,
which makes a linear programming simplex matrix quite large.
So if you add so many line constraints into the problem, though it is a linear set of
equations, but it will unnecessarily increase the computation time.
So an alternative is to solve the linear programming without any line flow, first solve without
considering any line flow, you just have to solve set of linear equations and then solve
for the optimum and calculate all flows that result and only put line limits into the linear
programming for those over the limit.
You just calculate, then find out for those buses, which is possibly violating the line
limits.
This process has been called iterative constraint search.
So that is it with respect to the linear programming.
Thank you very much.
