Question

Use a binary-coded Genetic algorithm (GA) to minimize the function f ( x1 , x2 ) = x1+ x2 + 2x12-  x22+ x1 , x2,  in the range of 0 \leq x1, x2 \leq 5 . Use a random population of size N = 6 , a single point crossover with probability Pc=1 and neglect mutation. Assume 3 bits for each variable and thus the GA-string will be 6- bits long. Show only one iteration by hand calculation.

07 Feb 2021
Answer :
Word Count : 728
Let's go step by step and perform one iteration of the Binary-Coded Genetic Algorithm (GA) to minimize the function: \[ f(x_1, x_2) = x_1 + x_2 + 2x_1^2 - x_2^2 \] within the range 0 ≤ x₁, x₂ ≤ 5 using Binary-Coded GA. --- ### Step 1: Encoding Variables into Binary Strings We assume 3 bits for each variable. Since each variable takes values between 0 and 5, we map the binary numbers to real values. Using 3-bit binary encoding, the mapping is: \[ x = \frac{\text{Binary Code}}{(2^3 - 1)} \times 5 = \frac{\text{Binary Code}}{7} \times 5 \] | Binary (3-bit) | Decimal Value | Scaled Value \(x = \frac{\text{Decimal}}{7} \times 5\) | |---------------|--------------|----------------------------------| | 000 | 0 | 0 | | 001 | 1 | 0.714 | | 010 | 2 | 1.429 | | 011 | 3 | 2.143 | | 100 | ______ ___ ______ ___ _____ ___ ______ _______ _____ ______ ______ _______.
______ ___ _______ _____ _________ ______ _____ ______ ____ __________ _________.
_______ _____ ____ ____ ____ __________ ___ ________.
_____ ______ ___ __________ _______ _____ ________ ________ ___ ____ _________.
_________ ________ _______ ______ __________ ____ _________ _________.
__________ ____ _______ _______ _______ ____ _________ ___ ___ ___ ____ ___.
_____ ____ _______ __________ __________ _______ ___ _______ _________ _____.
_____ _______ ___ _____ _________ __________ ___ _______.
__________ ______ _____ _____ _________.
____ ___ _____ ______ ____ _________ ________ ______.
_____ ________ ___ _______ __________ ____ _____ _______ ________ _______ __________ _______.
________ __________ _____ ___ ________ ________ ____ ____.
________ ___ ___ ___ ________ _____ _______ __________ ____ ______.
___ ___ _________ ______ ______ _____ _______ ____ ______ ___ ____ ______.
_________ __________ _______ ______ ___ ___.
_______ ___ ________ ____ _______.
_____ ______ ______ _________ _________.
_______ ___ _______ ___ ________.
______ ________ ____ ________ __________ _______ ____.
___ __________ _____ ___ ____ _______.
____ _______ ____ _____ ________.
__________ ___ ________ ____ ________ ___.
_________ _________ _________ ________ ____ _______ __________ ______ ______ _____.
____ ____ ____ ________ ___ ________ ____ _______ _________ _____.
______ _____ _____ __________ ____ ______ _____.
________ __________ _____ _________ ________ ____ _________ ____ __________ __________ ______.
_________ _____ ____ _____ ___ __________ __________ ______ ____ ____ ___.
____ __________ ___ ______ __________ ____ _____ __________ _______ __________.
_______ ______ ____ _______ ______ ____.
____ ________ _________ _____ ___ ___ ________ _______ ________.
__________ ____ ________ ___ __________ _____ _________ _______ ___.
_________ _____ _________ __________ _____.
__________ _____ ________ ______ _______.
________ __________ _________ __________ ____.
______ ________ ____ _____ __________ ___ ____ _____.
______ ________ ___ ______ ___ _____ ____ _______ _________ ______ ____.
____ _____ _________ _____ ________.
____ ______ ________ _______ ____ __________ _____ _____ _______ __________ __________ ____.
__________ ______ ____ ______ _____.
_______ _______ ______ ______ __________ ________ __________ _____ ______ _________.
___ _________ ___ _____ _______ ____ ________ _____ ________ __________.
_____ ________ _________ _________ _________ ______ _______ _____ _______ ___.
________ _______ ______ ________ ______ _____ _______.
___ ________ _______ ____ _________ _________.
___ _______ _____ _______ _____ _______ _________ _______ __________ _____ ____.
__________ _________ _____ _______ _____ _____.
_______ _______ __________ _______ ________ ____ ____ __________.
_________ __________ _________ _________ _____.
____ _______ __________ ______ _________ ______ ____.
__________ ______ __________ _____ ____ ________ ______ _______ ______ ______ ________.
______ _________ ___ _____ _______ ______ __________ ____ _____ ______.
__________ _____ __________ ________ ________.
______ ______ ___ ___ _________ _________ _____ _______ __________ __________.
_____ __________ ___ _____ ________.
_________ ______ ______ __________ ____ ___ ____ _____ ____ __________.
_____ ____ ______ __________ _______ ____ ____ ___ ______ __________ _____.
____ _______ __________ _____ ____ _____.
_________ __________ _________ _____ ___ ______ __________ _____ ________ ____ ____.
____ ______ ________ __________ _______ ______ _____ _______ ___.
_____ _______ _________ __________ ______ ____ _______ __________ ____ _____.
_______ __________ ___ ________ __________ ________ ____ ___.
_________ _________ _____ ________ _______.
_______ _______ _________ _____ _________ _________ ________.
_______ __________ __________ _______ _____ ___ _______ _______ ________ ____ _______ _____.
______ ______ _____ ___ ___ __________ __________ __________ _______ _________ ___.
_______ _______ _____ ________ _________ ___.
_____ _______ ____ ______ ____ _____.
________ _____ ____ ___ _____ _________ _________ _______ _______ _____.
_____ _____ ___ _____ _____ ________ _________ ________ ___ ___ ______ ___.
_______ ________ ___ _______ _____.
_________ _____ ________ _________.
Get Full Answer on WhatsApp
IGNOU NEWS
Assignment Submission Last Date Extended Till 30 June 2026 Click Here★★★IGNOU June 2026 TEE Date Sheet Released Click Here★★★
Top
📞
Call Support Instant phone assistance Use a binary-coded Genetic algorithm (GA) to minimize the function f (
→
🟢
WhatsApp Chat Fast live messaging
→
Email Us Business enquiries & support
→