SC File DHRUV GOEL 44114802717
SC File DHRUV GOEL 44114802717
SC File DHRUV GOEL 44114802717
ETCS-456
PRACTICAL RECORD
Branch : CSE
PRACTICAL DETAILS
VISION
To nurture young minds in a learning environment of high academic value and imbibe spiritual and
ethical values with technological and management competence.
MISSION
The Institute shall endeavour to incorporate the following basic missions in the teaching methodology:
❖ Engineering Hardware – Software Symbiosis: Practical exercises in all Engineering
and Management disciplines shall be carried out by Hardware equipment as well as the related
software enabling a deeper understanding of basic concepts and encouraging inquisitive nature.
❖ Life-Long Learning: The Institute strives to match technological advancements and
encourage students to keep updating their knowledge for enhancing their skills and inculcating
their habit of continuous learning
❖ Liberalization and Globalization: The Institute endeavors to enhance technical and
management skills of students so that they are intellectually capable and competent
professionals with Industrial Aptitude to face the challenges of globalization.
❖ Diversification: The Engineering, Technology and Management disciplines have
diverse fields of studies with different attributes. The aim is to create a synergy of the above
attributes by encouraging analytical thinking.
❖ Digitization of Learning Processes: The Institute provides seamless opportunities for
innovative learning in all Engineering and Management disciplines through digitization of
learning processes using analysis, synthesis, simulation, graphics, tutorials and related tools to
create a platform for multi-disciplinary approach.
❖ Entrepreneurship: The Institute strives to develop potential Engineers and Managers
by enhancing their skills and research capabilities so that they emerge as successful
entrepreneurs and responsible citizens.
MAHARAJA AGRASEN INSTITUTE OF TECHNOLOGY
VISION
MISSION
To provide an excellent learning environment across the computer science discipline to inculcate
professional behavior, strong ethical values, innovative research capabilities and leadership abilities
which enable them to become successful entrepreneurs in this globalized world.
Course Outcomes At the end of the course, a student will be able to:
C456.1: Learn mathematical basis as well as the general principles of various soft
computing techniques.
C456.3: Understand the role of fuzzy sets, neural networks, ANN, Neuro-fuzzy and
genetic algorithms in engineering.
C456.4: Implement and validate the solution including both hardware and software.
C456.5: Use the current techniques and tools required for computing practice.
LaserJet Printer 1 No
Software Detail
CentOS/Fedora Linux
SCILAB
LIST OF EXPERIMENTS
min Composition)
Pitts model)
Total Marks: 40
Timely
Submission
4 2 On time submission Late submission
of Lab
Record
Each experiment will be evaluated out of 10 marks. At the end of the semester average of 8
best performed practical will be considered as marks out of 40.
EXTERNAL PRACTICAL EXAM
It is taken by the concerned lecturer of the batch and by an external examiner. In this exam student needs to
perform the experiment allotted at the time of the examination, a sheet will be given to the student in which
some details asked by the examiner needs to be written and at the last viva will be taken by the external
examiner.
Total Marks: 60
2. Viva Voice: 15
3. Experiment performance: 15
4. File submitted: 10
NOTE:
Objectives:
• Understanding of the basic mathematical elements of fuzzy sets.
• Analyze concepts of fuzzy set.
• To use fuzzy set operations to implement current computing techniques used in
fuzzy computing.
Theory:
Fuzzy Logic:
Fuzzy logic is an organized method for dealing with imprecise data. It is a multivalued logic that
allows intermediate values to be defined between conventional solutions.
In classical set theory, the membership of elements in a set is assessed in binary terms according to a
bivalent condition — an element either belongs or does not belong to the set. By contrast, fuzzy set
theory permits the gradual assessment of the membership of elements in a set; this is described with the
aid of a membership function valued in the real unit interval [0, 1].
Bivalent Set Theory can be somewhat limiting if we wish to describe a 'humanistic' Illustration
mathematically. For Illustration, Fig 1 below illustrates bivalent sets to characterize the temperature of
a room. The most obvious limiting feature of bivalent sets that can be seen clearly from the diagram is
that they are mutually exclusive - it is not possible to have membership of more than one set. Clearly, it
is not accurate to define a transition from a quantity such as 'warm' to 'hot' by the application of one
degree Fahrenheit of heat. In the real world a smooth (unnoticeable) drift from warm to hot would
occur.
Fuzzy Sets:
1. Union:
2. Intersection
3. Complement
4. Algebraic Sum
Algebraic sum of two fuzzy sets and B is denoted by and is defined as,
Illustration:
5. Algebraic Product
as, Illustration:
Result/Conclusion
The concepts of union, intersection and complement are implemented using fuzzy sets which helped
to understand the differences and similarities between fuzzy set and classical set theories. It provides
the basic mathematical foundations to use the fuzzy set operations.
Viva Questions:
Commutativity
Associativity
Distributivity
Idempotency
Identity
Transitivity
• What is the difference between the crisp set and fuzzy set?
Union, intersection, complement, scalar product, vector product, Cartesian product and power.
Fuzzy logic is a form of many-valued logic in which the truth values of variables may be any real
number between 0 and 1 both inclusive. It is employed to handle the concept of partial truth,
where the truth value may range between completely true and completely false.
EXPERIMENT-2
Objectives:
• Understanding of the basic mathematical elements of the theory of fuzzy sets.
• To introduce the ideas of fuzzy sets, fuzzy logic.
• To implement applications using the fuzzy set operations.
Theory:
Max-Min Composition of fuzzy Relations
Fuzzy relation in different product space can be combined with each other by the operation
called ―Composition . There are many composition methods in use , e.g. max- product method, max-
average method and max-min method. But max-min composition method is best known in fuzzy logic
applications.
Definition:
Composition of Fuzzy Relations
• Consider two fuzzy relation; R (X ×Y) and S (Y ×Z), then a relation T (X × Z ), can
be expressed asmax-min composition
T=RoS
µT (x, z) = max-min [µR (x, y), µS (y, z)]
= V [µR (x, y) ^ µS (y, z)]
T=RoS
µT (x, z) = max [µR (x, y) . µS (y, z)]
• The max-min composition can be interpreted as indicating the strength of the existence of
relation between the elements of X and Z.
Crisp relation:
Crisp relation is defined on the Cartesian product of two sets. Consider,
Fuzzy relation:
If , then
Max-Min Composition:
Let X,Y and Z be universal sets and let R and Q be relations that relate them as,
Illustration: and
Result/Conclusion: With the use of fuzzy logic principles max min composition of fuzzy set
is calculated which describes the relationship between two or more fuzzy sets.
Viva Questions:
• What is the main difference between the probability and fuzzy logic?
Fuzzy Logic is all about degree of truth. Probability theory has nothing to reason about things that
are't entirely true or false. In short, we can say that Fuzzy Logic captures the meaning of partial
truth whereas Probability theory captures partial knowledge.
L-fuzzy sets
Neutrosophic fuzzy sets
Pythagorean fuzzy sets
Lotfi Zadeh
Objectives:
• Cover fuzzy logic inference with emphasis on their use in the design of
intelligent or humanistic systems.
• Prepare the students for developing intelligent systems.
Theory:
Control System:
Any system whose outputs are controlled by some inputs to the system is called control
system.
Fuzzy Controller:
Fuzzy controllers are the most important applications of fuzzy theory. They
work different than conventional controllers as:
Expert knowledge is used instead of differential equations to describe a system.
This expert knowledge can be expressed in very natural way using linguistic
variables, which are described by fuzzy sets.
The fuzzy controllers are constructed in following three stages:
1. Create the membership values (fuzzify).
2. Specify the rule table.
3. Determine your procedure for defuzzifying the result.
To design a system using fuzzy logic, input & output is necessary part of the system.
Main function of the washing machine is to clean cloth without damaging the cloth. In
order to achieve it, the output parameters of fuzzy logic, which are the washing
parameters, must be given more importance. The identified input & output parameters
are:
Input: 1. Degree of dirt
2. Type of dirt
Output: Wash time
Fuzzy sets:
The fuzzy sets which characterize the inputs & output are given as follows:
1. Dirtiness of clothes
2. Type of dirt
3. Wash time
Procedure:
Step1: Fuzzification of inputs
For the fuzzification of inputs, that is, to compute the membership for the
antecedents, the formula used is,
MAX
Degree of
membership
Point 1 x Point 2
S M L
NG VS S M
M M M L
G L L VL
1. If Dirtness of clothes is Large and Type of dirt is Greasy then Wash Time is Very Long;
2. If Dirtness of clothes is Medium and Type of dirt is Greasy then Wash Time is Long;
3. If Dirtness of clothes is Small and Type of dirt is Greasy then Wash Time is Long;
4. If Dirtness of clothes is Large and Type of dirt is Medium then Wash Time is Long;
5. If Dirtness of clothes is Medium and Type of dirt is Medium then Wash Time is Medium
6. If Dirtness of clothes is Small and Type of dirt is Medium then Wash Time is Medium;
7. If Dirtness of clothes is Large and Type of dirt is Not Greasy then Wash Time is Medium;
8. If Dirtness of clothes is Medium and Type of dirt is Not Greasy then Wash Time is Short;
9. If Dirtness of clothes is Small and Type of dirt is Not Greasy then Wash Time is Very Short;
Fuzzy Output
Fuzzy output of the system is the ‗fuzzy OR‘ if all the fuzzy outputs of the rules with non zero
rule strengths.
Step 3: Defuzzification
Result/Conclusion
Fuzzy controller for washing machine application is implemented using the fuzzy logic
which also defines the rules for fuzzification and de-fuzzification. We have analyzed how
outputs are controlled by some inputs of the system through this experiment.
Viva Questions:
• What is the reason that logic function has rapidly become one of the most successful
technologies for developing sophisticated control systems?
There are mainly two reasons:
(i)Fuzzy logic applies the concept of ‘certain degree’ which is similar to the way human beings
think. Instead of just being either true or false, fuzzy logic can be true partially and also false
partially at the same time. This is similar to the human mind.
(ii)Fuzzy logic can uses exact points representing to what degree an event occurs and with fuzzy
rules it generates precise outcomes.
Defuzzification is the process of producing a quantifiable result in Crisp logic, given fuzzy sets
and corresponding membership degrees. It is the process that maps a fuzzy set to a crisp set.
EXPERIMENT-4
Objectives:
Theory:
Neural network was inspired by the design and functioning of human brain
and components.
Definition:
―Information processing model that is inspired by the way biological nervous
system (i.e the brain) process information, is called Neural Network.
Neural Network has the ability to learn by Illustrations. It is not designed to perform
fix /specific task, rather task which need thinking (e.g. Predictions).
ANN is composed of large number of highly interconnected processing
elements(neurons) working in unison to solve Illustrations. It mimic human brain. It is
configured for special application such as pattern recognition and data classification
through a learning process. ANN is 85-90% accurate.
Y- output neuron
Yin= x1w1+x2w2
Output is :
y=f(Yin)
Output= function
The early model of an artificial neuron is introduced by Warren McCulloch and Walter
Pitts in 1943. The McCulloch-Pitts neural model is also known as linear threshold gate. It
is a neuron of a set of inputs I1,I2,I3…Im and one output y . The linear threshold gate
simply classifies the set of inputs into two different classes. Thus the output y is binary.
Such a function can be described mathematically using these equations:
W1,W2…Wm are weight values normalized
in the range of either (0,1) or (-1,1) and
associated with each input line, Sum is the
weighted sum, and T is a threshold constant.
The function f is a linear step function at
threshold T as shown in figure
For inhibition to be absolute, the threshold with the activation function should satisfy the
following condition:
θ >nw –p
Output will fire if it receives ―k or more excitatory inputs but no inhibitory inputs where
kw≥θ>(k-1) wθ>(k-1) w
- The M-P neuron has no particular training algorithm.
- An analysis is performed to determine the weights and the threshold.
- It is used as a building block where any function or phenomenon is modelled based on
a logic function.
Illustration Statement: Implement XOR function using MP model
Truth table for XOR function is:
X1 X2 Y
0 0 0
0 1 1
1 0 1
1 1 0
Yin=x1w1+x2w2
As we know,
X1 X2 Z1
0 0 0
0 1 0
1 01
1 10
For Z1,
Θ=1
X1 X2 Z2
0 0 0
0 1 1
1 0 0
1 1 0
For Z2,
Θ=1
Y=Z1+Z2
Z1 Z2 Y
0 0 0
0 1 1
1 0 1
1 1 0
For Y,
Θ=1
Result/Conclusion:
Mc-Culloch pits Model is implemented for XOR function by using the thresholding
activation function. Activation of M-P neurons is binary (i.e) at any time step the neuron may
fire or may not fire. Threshold plays major role here.
Viva Questions:
• What are Neural Networks? What are the types of neural networks?
Difference between traditional computers and artificial neural networks is the way in which
they function. While computers function logically with a set of rules and calculations,
artificial neural networks can function via images, pictures, and concepts
Once a network has been structured for a particular application, that network is rained. To
start this process the initial weights are chosen randomly. Then, the training, or learning,
begins. There are two approaches to training - supervised and unsupervised.
EXPERIMENT-5
Objectives:
• To become familiar with neural networks learning algorithms from available Illustrations.
• Provide knowledge of learning algorithm in neural networks.
Objectives:
• To become familiar with neural networks learning algorithms from available
Illustrations.
• To give design methodologies for artificial neural networks.
• Provide knowledge of un-supervised learning in neural networks.
Objectives:
• To familiarize with Mathematical foundations for Genetic algorithm, operator.
• To study the Applications of Genetic Algorithms.
Theory:
Genetic algorithm:
• Genetic algorithm is a search technique used in computing to find true or
approximate solutions to approximate solutions to optimization & search Illustrations.
• Genetic algorithms are inspired by Darwin's theory about evolution. Solution to
an Illustration solved by genetic algorithms is evolved.
• Algorithm is started with a set of solutions (represented by chromosomes) called
population. Solutions from one population are taken and used to form a new population.
This is motivated by a hope, that the new population will be better than the old one.
Solutions which are selected to form new solutions (offspring) are selected according to their
fitness - the more suitable they are the more chances they have to reproduce.
• This is repeated until some condition (for Illustration number of populations
or improvement of the best solution) is satisfied.
Result/Conclusion:
The match word finding algorithm is implemented using the genetic algorithms which
include all the genetic algorithm operators. Genetic algorithm includes the selection,
crossover, mutation operators along with fitness function.
Viva Questions:
• Name some of the existing search methods.
1. Calculus based Search
2. Enumerative Search
3. Random Search
• What is reproduction?
Genetic algorithm reproduction methods for distribution system loss reduction and load
balancing problems. Selected fittest parents create new child.
• What is crossover?
Crossover is a genetic operator used to combine the genetic information of two parents
to generate new offspring.
EXPERIMENT-8
Aim: Study of ANFIS Architecture.
Objectives:
• Study of hybrid systems.
• Prepare the students for developing intelligent system.
Theory:
The adaptive network-based fuzzy inference systems (ANFIS) is used to solve Illustrations
related to parameter identification. This parameter identification is done through a hybrid
learning rule combining the back-propagation gradient descent and a least-squares method.
Let the membership functions of fuzzy sets Ai, Bi, i=1,2, be , AiBi.
In evaluating the rules, choose product for T-norm (logical and).
1. Evaluating the rule premises results in
Layer 2 (L2): Each node calculates the firing strength of each rule using the min
or prod operator. In general, any other fuzzy AND operation can be used.
Layer 3 (L3): The nodes calculate the ratios of the rule are firing strength to the sum
of all the rules firing strength. The result is a normalised firing strength.
Layer 4 (L4): The nodes compute a parameter function on the layer 3 output.
Parameters in this layer are called consequent parameters.
Layer 5 (L5): Normally a single node that aggregates the overall output as
the summation of all incoming signals.
Algorithm:
When the premise parameters are fixed, the overall output is a linear combination of the
consequent parameters. In symbols, the output f can be written as which is linear in the
consequent parameters cij (i = 1,2¸ j = 0,1,2). A hybrid algorithm adjusts the consequent
parameters cij in a forward pass and the premise parameters {ai, bi, ci} in a backward pass
(Jang et al., 1997). In the forward pass the network inputs propagate forward until layer 4,
where the consequent parameters are identified by the least-squares method. In the
backward pass, the error signals propagate backwards and the premise parameters are
updated by gradient descent.
Because the update rules for the premise and consequent parameters are decoupled in
the hybrid learning rule, a computational speedup may be possible by using variants of
the gradient method or other optimisation techniques on the premise parameters.
Result/Conclusion:
This study experiments describe the architecture of neuro fuzzy systems. Fuzzy rule
based system includes the model like sugenor type fuzzy which is having neural learning
capabilities.
Viva Questions:
• What are the hybrid systems?
A hybrid system is a dynamical system that exhibits both continuous and discrete dynamic
behaviour – a system that can both flow (described by a differential equation) and jump
(described by a state machine or automaton)
• Aware of the use of neuro fuzzy inference systems in the design of intelligent
or humanistic systems.
• To become knowledgeable about neuro fuzzy inference systems.
• An ability to apply knowledge of computing and use of current computing
techniques appropriate to the discipline.
Theory:
In the field of artificial intelligence, a genetic algorithm (GA) is a search heuristic that
mimics the process of natural selection. This heuristic (also sometimes called a
metaheuristic) is routinely used to generate useful solutions to optimization and search
Illustrations.[1] Genetic algorithms belong to the larger class of evolutionary algorithms
(EA), which generate solutions to optimization Illustrations using techniques inspired by
natural evolution, such as inheritance, mutation, selection and crossover.
Optimization Illustrations
The evolution usually starts from a population of randomly generated individuals, and is
an iterative process, with the population in each iteration called a generation. In each
generation, the fitness of every individual in the population is evaluated; the fitness is
usually the value of the objective function in the optimization Illustration being solved.
The more fit individuals are stochastically selected from the current population, and each
individual's genome is modified (recombined and possibly randomly mutated) to form a
new generation. The new generation of candidate solutions is then used in the next
iteration of the algorithm. Commonly, the algorithm terminates when either a maximum
number of generations has been produced, or a satisfactory fitness level has been reached
for the population.
Once the genetic representation and the fitness function are defined, a GA proceeds to
initialize a population of solutions and then to improve it through repetitive application of
the mutation, crossover, inversion and selection operators.
Initialization
The population size depends on the nature of the Illustration, but typically contains
several hundreds or thousands of possible solutions. Often, the initial population is
generated randomly, allowing the entire range of possible solutions (the search space).
Occasionally, the solutions may be "seeded" in areas where optimal solutions are likely to
be found.
Selection
The fitness function is defined over the genetic representation and measures the quality of
the represented solution. The fitness function is always Illustration dependent. For
instance, in the knapsack Illustration one wants to maximize the total value of objects that
can be put in a knapsack of some fixed capacity. A representation of a solution might be
an array of bits, where each bit represents a different object, and the value of the bit (0 or
1) represents whether or not the object is in the knapsack. Not every such representation
is valid, as the size of objects may exceed the capacity of the knapsack. The fitness of the
solution is the sum of values of all objects in the knapsack if the representation is valid,
or 0 otherwise.
Terminology:
Result/Conclusion:
This study experiments describe the various techniques used for derivative
free optimization. It also describes how to use optimization techniques in soft
computing domain.
Viva Questions:
Aim: Study of research paper on Soft Computing and give a review report consists
of abstract, introduction, state of the art, methodology, results, conclusion, reference.
• Crate awareness among the students towards the recent trends in soft
computing.
Theory:
Students can find the research papers based on the artificial neural
network, hybrid systems, genetic algorithm, fuzzy system, fuzzy logic,
fuzzy inference system etc.
Students need to search recent papers on any of the above mentioned topics,
study it and prepare presentation on the same
Result/Conclusion:
Through this experiment, we have understood the recent advancements and
applications of various subdomains of soft computing.
References:
1. www.ieeeexplore.com
2. www.Scicencedirect.com
3. Any open access journal