Applied Soft Computing
Applied Soft Computing
Axon
20. Give any 4 examples of activation function.
Identity function
Sigmoidal functions
Ramp function
16 MARK QUESTIONS:
1. Explain Back propagation network with its architecture, training and testing
algorithms.
[Page: 64 to 73 in Principles of soft computing by Sivanandam and Deepa]
(Concentrate much on architecture and flow chart)
2. Draw and Explain the perceptron with its learning algorithm
[Page: 49 to 56 in Principles of soft computing by Sivanandam and Deepa]
(Concentrate much on architecture and flow chart)
3. Draw and Explain the Mculloh-Pitts neuron with its learning algorithm
[Page: 27 to 28 in Principles of soft computing by Sivanandam and Deepa]
4. Explain different types of learning in ANN.
[Page: 20 to 22 in Principles of soft computing by Sivanandam and Deepa]
5. One problem in Mculloh_Pitts & one problem in Perceptron.
[Page: 33 to 45 in Principles of soft computing by Sivanandam and Deepa]
(See all solved problems)
UNIT 2 : NEURAL NETWORKS FOR CONTROL
The neuron has n inputs, X1,X2,...,Xn. These inputs can come from other units, or from
some external source. The output of the unit y for the neural networks is given by the
corresponding activation function used in the network.
The purpose for using the neural network is to obtain a mapping from a vector
X to a vector Y. The size of the input and output layers are fixed by the number of
components of X and Y, respectively. The user specifies the number of neurons N h in
the hidden layer. The accuracy of the mapping is relatively insensitive to N h over a
wide range of values provided that the number of neurons used is greater than the
minimum number needed to implement the mapping. For a network with a single
hidden layer, and a user-specified hidden layer size, the number of weighting terms in
the network is:
Nt=NXNh+NhNY+Nh+NY
Nt = the total number of weighting terms,
NX= the dimension of X,
NY = the dimension of Y, and
Nh= the size of the hidden layer.
The set of input and output vectors that the network is trained on is commonly
referred to as the training set.
The
cart and pendulum are constrained to move within the vertical plane. The state at time
t is specified by four real-valued variables:
the angle between the pendulum and vertical and the angular velocity (θt & θt )
the horizontal position and velocity of the cart (ht & ht )
The inverted pendulum system was simulated using the following equations of
motion.
where the units of θ, h, and time t are radians, meters, and seconds,
respectively, and where g is the acceleration due to gravity (9.8 m/sec2), F t the output
of the action network (±10 N), m c the mass of the cart (10 kg), m the mass of the
pendulum plus the cart (1.1 kg), and l the distance from the pivot to the pendulum’s
center of mass (0.5 m).
The goal of the inverted pendulum task is to apply a sequence of right and left
forces of fixed magnitude to the cart such that the pendulum is balanced and the cart
does not hit the edge of the track. A zero-magnitude force is not permitted. Bounds on
the angle and on the cart’s horizontal position specify the states for which a failure
signal occurs. There is no unique solution-any trajectory through the state space that
does not result in a failure signal is acceptable. The only information regarding the
goal of the task is provided by a failure signal, which signals either the pendulum
falling past ±12 deg or the cart hitting the bounds of the track at ±2.4 m.
Washing machine
Traffic control
Medical diagnosis
Speed control of machines
9. What is alpha or lambda cut set and what is cardinality of a Fuzzy set?
The set Aλ is a crisp set called lambda cut( or alpha cut) set of a fuzzy set A,
where Aλ = { x/ μA (x) ≥ λ } . This is a crisp set derived from its parent fuzzy set.
The cardinality of a fuzzy set A, the so-called SIGMA COUNT, is expressed as a
SUM of the values of the membership function of A, μA(x):cardA= μA(x1) + μA(x2) + …
μA(xn) = ΣμA(xi), for i=1..n
10. What are the different Fuzzy relation operations?
AND – maximum membership value
OR – minimum membership value
NOT – ( 1- membership value)
11. Define a Fuzzy Cartesian product
Let A be a fuzzy set on universe X and B is a fuzzy set on universe Y . The
Cartesian product between A and B will result in a fuzzy relation such that
A x B = R C X x Y , where R has a membership μR (x,y) = min [ μA (x) , μB (y) ]
12. Define Fuzzy controller.
By a fuzzy logic controller (FLC) we mean a control law that is described by a
knowledge-based system consisting of IF...THEN rules with vague predicates and a
fuzzy logic inference mechanism.
13. What are the advantages of Fuzzy controller?
Very robust and Can be easily modified
Can use multiple inputs and outputs sources
Much simpler than its predecessors (linear algebraic equations)
Very quick and cheaper to implement
14. What is Fuzzy linqistic variable?
A linguistic variable is a variable whose values are words or sentences in a natural
or artificial language. Eg:Tall, High, Slow, Medium
15. Explain Centre of Gravity method of defuzzification.
It finds the point where a vertical line would slice the aggregate set into two equal
masses. Mathematically this center of gravity (COG) can be expressed as:
16 MARK QUESTIONS:
Washing machine
Traffic control
Medical diagnosis
Speed control of machines
2. A modern fully automatic washing machine is fixed with what type of intelligent
control? Define the input and output of the system
The washing machine will be fitted with Fuzzy logic intelligent control. The
inputs will be the weight of the dirty cloth, time to be taken for washing and the
output will be the amount of washing powder and water to be used.
3. Name the shapes of the membership function available in fuzzy logic tool box
Trapezoidal
Triangular
Gaussian
Sigmoidal
L function
4. An intelligent door locking system in vehicles deploys what kind of control?
This will use the combination of Fuzzy logic and Neural Network because
they combine rule base as well as knowledge base.
5. Name any three commercial software used for soft computing techniques.
MATLAB
PSPICE
ETAP
6. How stability of Fuzzy logic control is found?
In the stability analysis, the fuzzy controller is replaced with an appropriate
describing function which represents the nominal model of the fuzzy controller. The
Nyquist stability Criteria is then performed to determine the stability of the fuzzy
control system. Additionally, this analysis can predict the existence of the limit
oscillation.
7. Write any two applications of fuzzy logic in electrical engineering.
Control of Electrical machines
Stability assessment of power systems.
16 MARK QUESTIONS:
We want to design a controller that will either maintain the liquid level at a
desired point. Suppose that the tank in Figure 1 is 10 feet tall and the tank is empty.
We want to fill the tank to a level of 5 feet, so we make the current set-point, w,
equal to 5. The idea is to fill the tank to the desired set-point as quickly and smoothly
as possible. We want to minimize the amount of overshoot, or the time that the tank
has a level greater than the set-point value before it finally settles down. The current
level at any time, t, is designated as h. Liquid flows out of the tank through an open
valve. This flow is designated by the letter q. Liquid flows into the tank by means of
a pump. The pump flow, Q, can be regulated by the controller. The tank cross-
sectional area is designated by the letter A. Below equation describes the mass
balance for the liquid in the tank as a function of time:
Flow out of the tank, q, through the outlet pipe and the valve is described as,
where ɸ is a friction coefficient for flow through both the small exit pipe and the
valve. It can be calculated with fair precision, or better, measured. The term Ap
represents the cross-sectional area of the small exit pipe. The gravitational constant,
g, is equal to 32.2 ft s −2 in US engineering units. Figure 2 shows the block flow
diagram for this example.
Fuzzy Control:
The output membership functions for this controller are shown in Figure 4. In
this figure, the defuzzified output value from the controller is a fractional value
representing the required pump output for the desired level change. It is defined by
the following expression:
where the term Qsp represents the pump output (gallons per minute) required to
maintain the set-point level. The term Q i is the new pump output requested by the
controller. If Δu>0, then the Range is defined as Q max − Qsp, where Qmax is the
maximum pump output. If Δu < 0, then the Range is defined as Q sp. The term Qsp
must be calculated using a steady state mass balance for the tank or it must be
estimated in some fashion.
The ranges of the fuzzy output sets Positive and Negative are +2.0 to 0.0 and
−2.0 to 0.0, respectively. Since the Change in Controller Action is a fraction
between either 0.0 and 1.0 or 0.0 and −1.0, it is clear that we will never obtain a
control action outside the range of −1.0 to 1.0. Our defuzzification technique will
require that we include numbers up to 2.0 in the fuzzy set or membership function
Positive and numbers down to −2.0 in the fuzzy set Negative. Even though numbers
of this magnitude can never be generated by our fuzzy system, we can still include
them in our fuzzy sets. The users can define their fuzzy sets however they wish. The
fuzzy mathematics described in earlier chapters is capable of handling objects of this
type. The user has to define the fuzzy sets so that they make sense for the particular
problem. In our case we are going to use the centroid technique for defuzzification.
We therefore need to extend our membership functions so that it is possible to obtain
centroids of ±1.0. We need this capability in order for the control system to either
turn the pump on “full blast” or turn it completely off.
2. Explain Fuzzy based motor control.
Fuzzy logic system can be used to perform the speed control of any electrical
motors. Here we discuss how a fuzzy logic system can be used to control the speed
of a DC shunt motor using field control method.
In the field control method of speed control of DC shunt motor, the speed of
the motor can be varied by varying the field excitation. If there is any load change in
the motor, the line current varies and there will be a speed change. The purpose of
the fuzzy controller is to maintain a fairly constant speed of the motor as load is
changed. This speed control is accomplished by adjusting the field current. The input
variables to the fuzzy controller are therefore motor speed and field current, while
the field current is also an output variable. Fuzzy rules for this problem thus appear
in the form,
IF Speed is ………and field current (at that speed) is ……..
THEN field current (required to effect speed control) is …….
Consider a DC shunt motor with rated voltage of 220 V, having an armature
resistance of 0.2Ω, a rated field current of 2 A and a rated full load speed of 1500
rpm.
The field excitation of the motor and the speed error (difference between
actual speed and reference or set speed) may be taken as the input to the fuzzy
controller and the field excitation to be additionally given shall be taken as output of
fuzzy. The fuzzy linguistic variables for the inputs and the output can be created as
shown in the below tables.
Since there are 5 linguistic variables for each input, the total number of rules
will be 25. The input-output relation is described in the below table.
S L AN S AN L
FIELD CURRENT BN N BN BN AN AN
N AN AN N AN AN
AN N N AN N N
L BN BN L BN BN
Fuzzy controllers are inherently nonlinear controllers, and hence fuzzy control
technology can be viewed as a new, cost effective and practical way of developing
nonlinear controllers. The major advantage of this technology over the traditional
control technology is its capability of capturing and utilizing qualitative human
experience and knowledge in a quantitative manner through the use of fuzzy sets,
fuzzy rules and fuzzy logic. However, carrying out analytical analysis and design of
fuzzy control systems is difficult not only because the explicit structure of fuzzy
controllers is generally unknown, but also due to their inherent nonlinear and time-
varying nature.
Fuzzy logic controllers are normally built with three distinct components, as
shown in Fig. 1
represent the tracking error, change in error, and change in error rate,
respectively. Then the general PID controller equation can be re-written as,
The output membership functions are not as simple since there are more possible
outcomes. In our case, there are also two crossing straight lines followed by constant
holds, but there are two extra triangular membership functions. These are shown in
Fig. 3. As before, the parameter, L, defines the minimum and maximum outputs, but
there are two new output terms centered at ±L/3, respectively.
Given these membership functions, it is now possible to present the inference
composition rules. These can be expressed as follows:
where the ‘&’ symbol represents the fuzzy ``and'' operation, and the symbol
means ``is a member of '', and the symbol represents the combination. Note the
symbol represents the ``large'' value in the corresponding direction of either positive
(p) or negative (n).
As there are three different input components in the control law corresponding
to the proportional, integral, and differential terms, it is necessary to view all the
possible combinations as a cube with a limiting edge value of L. Fig. 4 represents the
three-dimensional cube with the boundaries drawn at the value of L. the
defuzzification rules will be constructed by dividing the cube into 48 sectors with
known characteristics.
This new fuzzy PID controller is will be able to control linear and nonlinear
plants effectively. The fuzzy PID controller is also able to tolerate many poor
selections or inadequate implementations of the controller gains which would make
most conventional controllers unstable. Since nonlinear effects will be encountered
in many complex systems, such as robotic manipulators, the ability of the fuzzy PID
controller to tolerate these un-modeled nonlinear and gain-value variation factors is a
substantial improvement over conventional linear PID controllers in real-world
applications.
18. Mention the role of fitness function in GA and what are the requirements of GA
Genetic Algorithm works on the principle of survival of fittest. A fitness
function quantifies the optimality of a solution (chromosome) so that that particular
solution may be ranked against all the other solutions.
19. The popularity of GA is attributed by which factors?
Concept is easy to understand
Supports multi-objective optimization
Good for “noisy” environments
Inherently parallel
Easily distributed
20. What are the advantages of GA over conventional algorithms?
Parallelism
Liability
Solution space is wider
The fitness landscape is complex
Easy to discover global optimum
The problem has multi objective function
Only uses function evaluations.
Easily modified for different problems.
Handles noisy functions well.
21. What are the limitations of GA? When does one go for GA?
The limitations of Genetic Algorithm are,
The problem of identifying fitness function
Definition of representation for the problem
Premature convergence occurs
Cannot use gradients.
16 MARK QUESTIONS:
(∑ )
N
Objective Function F ,=min C i ( P gi )
i=1
Equality constraint: load generation balance ie., the total generation must
be equal to the total load demand neglecting the losses.
Inequality constraints: upper and lower limits on generating units output
Consider the below example system having 3 units and the total demand for
this system is 800 MW. The cost equations for the 3 units are given as,
Objective Function:
( )
3
Objective Function F ,=min ∑ C i ( P gi )
i=1
= min(C1+C2+C3)
Constraints:
There are both equality and inequality constraints in the economic dispatch
problem.
Equality Constraint:
Inequality Constraints:
Step 4:
Evaluate the fitness function for the children produced. ie., find the value of total cost
for the obtained power values. Compare the cost value with previous iteration/
generation value.
Step 5:
Repeat the procedure/steps until the difference between previous generation cost
value and current generation objective function value becomes negligible. The
resultant will be the power scheduling considering economic dispatch.