Soft Computing Assignment
1. General Genetic Algorithm (GA)
Genetic Algorithm (GA) is a type of optimization and search technique based on the principles of genetics
and natural selection. It belongs to the larger class of evolutionary algorithms (EAs).
Steps in Genetic Algorithm:
1. Initialization:
- A population of chromosomes (solutions) is randomly generated.
- Each chromosome is a string of genes representing a solution.
2. Evaluation:
- Each chromosome is evaluated using a fitness function.
3. Selection:
- Better solutions are selected for reproduction.
- Methods include Roulette Wheel, Tournament, and Rank Selection.
4. Crossover:
- Parent chromosomes exchange parts of their genes to create offspring.
- Types: Single-point, Two-point, and Uniform crossover.
5. Mutation:
- Random changes in gene values introduce diversity.
Soft Computing Assignment
6. Replacement:
- New offspring replace some or all of the population.
7. Termination:
- Process continues until a satisfactory solution or max generations.
Diagram (Flowchart):
Start -> Initialize -> Evaluate -> Select -> Crossover -> Mutation -> New Population -> Check Termination ->
End
2. Rule Formation and Rule Decomposition
Fuzzy rule formation involves creating IF-THEN statements that link input variables to output actions.
Example: IF temperature is HIGH AND fan_speed is LOW THEN cooling is INCREASE.
Decomposition of Rules:
Sometimes, complex fuzzy rules are split into simpler ones.
Example:
Original: IF A and B and C THEN Z
Decomposed:
- IF A and B THEN Y1
- IF Y1 and C THEN Z
This simplifies the rule base and improves modularity and scalability.
Soft Computing Assignment
Diagram:
A + B -> Y1 -> C -> Z
3. Methods of Membership Value Assignments
Membership functions define how much a value belongs to a fuzzy set (0 to 1).
Methods of Assignment:
1. Intuition-Based - Uses expert knowledge.
2. Histogram Analysis - Based on data distribution.
3. Fuzzy Clustering - Overlapping fuzzy clusters.
4. Neural Network-Based - Uses learning from data.
5. Genetic Algorithms - Optimizes membership functions.
Diagram (Common Membership Functions):
- Triangular
- Trapezoidal
- Gaussian
4. Multilevel Optimization
Multilevel optimization involves hierarchical decision-making problems.
Types:
1. Bi-Level Optimization: Two levels (Leader and Follower)
Soft Computing Assignment
2. Multi-Level: More than two levels
Techniques:
- Genetic Algorithms
- Evolutionary Strategies
- Swarm Optimization
Applications:
- Supply chain management
- Government policy modeling
Diagram:
Leader Problem -> Follower Problem -> Output
5. Soft Computing-Based Hybrid Fuzzy Controllers
Hybrid fuzzy controllers combine fuzzy logic with other techniques like neural networks and genetic
algorithms.
Types:
1. Neuro-Fuzzy Controller - Neural networks tune fuzzy rules.
2. Genetic-Fuzzy Controller - Uses GA to evolve fuzzy systems.
3. Fuzzy-PID - Combines fuzzy logic with PID control.
Advantages:
Soft Computing Assignment
- Handles uncertainty
- Adaptive and robust
- Suitable for nonlinear systems
Diagram (Hybrid Controller Structure):
Input -> Fuzzification -> Inference -> NN/GA -> Defuzzification -> Output