Docsity

EM582 - Assignment 2 GA, Assignments of Engineering management

Toggle sidebar
bg1
EM582 Soft Methods for Planing and Management
Izmir Institute of Technology
Engineering Management Department
2021
Assignment #2 GA
Q1. One has $ 10000 for a spend for a holiday (H) and an automobile (A). The total cost function can
expressed as: C= 1.25H0.35 + 0.65A0.89 subject to 5000 ≤H < 20000 and 10000 ≤A < 90000. Generate
6 arbitrary chromosomes and obtain fitness of each chromosome.
H17221 18587 6904 18701 14486 6463
A32280 53751 86601 87192 22609 87648
Chromosome1: 1722132280 fc1= 1.25(17221)0.35 + 0.65(32280)0.89 = 6734.73
Chromosome2: 1858753751 fc2= 1.25(18587)0.35 + 0.65(53751)0.89 = 10581.84
Chromosome3: 690486601 fc3= 1.25(6904)0.35 + 0.65(86601)0.89 = 16145.49
Chromosome4: 1870187192 fc4= 1.25(18701)0.35 + 0.65(87192)0.89 = 16254.86
Chromosome5: 1448622609 fc5= 1.25(14486)0.35 + 0.65(22609)0.89 = 4913.545
Chromosome6: 646387648 fc6= 1.25(6463)0.35 + 0.65(87648)0.89 = 16318.18
P6
i=1 fci = 70948.64
Fitness Function % =F(Ci) = fci
P6
i=1 fci x100
F(C1) = fc1
P6
i=1 fci =6734.73
70948.64 = %9.49 // F(C2) = fc2
P6
i=1 fci =10581.84
70948.64 = %14.91
F(C3) = fc3
P6
i=1 fci =16145.49
70948.64 = %22.76 // F(C4) = fc4
P6
i=1 fci =16254.86
70948.64 = %22.91
F(C5) = fc5
P6
i=1 fci =4913.545
70948.64 = %6.93 // F(C6) = fc6
P6
i=1 fci =16318.18
70948.64 = %23
Chromosome1
9.49%
Chromosome2
14.91%
Chromosome3
22.76%
Chromosome4
22.91%
Chromosome5
6.93% Chromosome6
23%
Figure 1: Fitness Values
Q2. Maximize f(x) = x1.25 + 1.42xwhere 0< x < 10. Employ 8 chromosomes and perform 2
iterations only.
1
pf3
pf4

Partial preview of the text

Download EM582 - Assignment 2 GA and more Assignments Engineering management in PDF only on Docsity!

EM582 Soft Methods for Planing and Management

Izmir Institute of Technology

Engineering Management Department

Assignment #2 GA

Q1. One has $ 10000 for a spend for a holiday (H) and an automobile (A). The total cost function can expressed as: C = 1. 25 H^0.^35 + 0. 65 A^0.^89 subject to 5000 ≤ H < 20000 and 10000 ≤ A < 90000. Generate 6 arbitrary chromosomes and obtain fitness of each chromosome.

H 17221 18587 6904 18701 14486 6463

A 32280 53751 86601 87192 22609 87648

Chromosome1: 1722132280 fc 1 = 1.25(17221)^0.^35 + 0.65(32280)^0.^89 = 6734. 73 Chromosome2: 1858753751 fc 2 = 1.25(18587)^0.^35 + 0.65(53751)^0.^89 = 10581. 84 Chromosome3: 690486601 fc 3 = 1.25(6904)^0.^35 + 0.65(86601)^0.^89 = 16145. 49 Chromosome4: 1870187192 fc 4 = 1.25(18701)^0.^35 + 0.65(87192)^0.^89 = 16254. 86 Chromosome5: 1448622609 fc 5 = 1.25(14486)^0.^35 + 0.65(22609)^0.^89 = 4913. 545 Chromosome6: 646387648 fc 6 = 1.25(6463)^0.^35 + 0.65(87648)^0.^89 = 16318. 18

P 6 i=1 fci^ = 70948.^64

Fitness Function % = F (Ci) = P 6 fci i=1 fci

x 100

F (C 1 ) = P 6 fc^1 i=1 fci

= 709486734.^73. 64 = %9. 49 // F (C 2 ) = P 6 fc^2 i=1 fci

= 1058170948 ..^8464 = %14. 91

F (C 3 ) = P 6 fc^3 i=1 fci = 1614570948 ..^4964 = %22. 76 // F (C 4 ) = P 6 fc^4 i=1 fci

= 1625470948 ..^8664 = %22. 91

F (C 5 ) = P 6 fc^5 i=1 fci

= 491370948.^545. 64 = %6. 93 // F (C 6 ) = P 6 fc^6 i=1 fci

= 1631870948 ..^1864 = %

Chromosome 9.49%

Chromosome

14.91%

Chromosome

Chromosome

Chromosome

6.93% (^) Chromosome

Figure 1: Fitness Values

Q2. Maximize f (x) = x^1.^25 + 1. 42 x where 0 < x < 10. Employ 8 chromosomes and perform 2 iterations only.

Table 1: Evaluating Fitness of Each Chromosome

Table 2: Ranking

Table 8: Mutation

  • 0111 7 21.33 %15. Chromosome 10_Based Objective Function f(x) Fitness Function %
  • 0011 3 8.21 %5.
  • 0101 5 14.58 %10.
  • 0111 7 21.33 %15.
  • 1001 9 28.37 %19.
  • 1001 9 28.37 %19.
  • 0101 5 14.58 %10.
  • 0010 2 5.22 %3.
  • 0111 7 21.33 %15. Chromosome 10_Based Objective Function f(x) Fitness Function %
  • 1001 9 28.37 %19.
  • 0101 5 14.58 %10.
  • 0111 7 21.33 %15.
  • 1001 9 28.37 %19.
  • 1001 9 28.37 %19.
  • 0101 5 14.58 %10.
  • 1001 9 28.37 %19.
  • Q3. Minimize the function given in Q2. Employ the same number of chromosomes and perform - 5-9 0101 5 ⇒ Table 3: Cross Section with Single Cut - 1001 9 ⇒ - 7-9 0111 7 ⇒ - 1001 9 ⇒
    • 0111 7 21.33 %10. Chromosome 10_Based Objective Function f(x) Fitness Function %
    • 1001 9 28.37 %14.
  • 01 0 1 7 21.33 %10.
    • 0111 7 21.33 %10.
    • 1001 9 28.37 %14.
    • 1001 9 28.37 %14.
  • 01 00 8 24.81 %12.
    • 1001 9 28.37 %14.
    • 0010 2 5.22 %4. Chromosome 10_Based Objective Function f(x) Fitness Function %
    • 0011 3 8.21 %6.
    • 1000 8 24.81 %20.
    • 0011 3 8.21 %6.
    • 1000 8 24.81 %20.
    • 0011 3 8.21 %6.
    • 1001 9 28.37 %23.
    • 0100 4 11.34 %9.
    • 0010 2 5.22 %4. Chromosome 10_Based Objective Function f(x) Fitness Function %
    • 0011 3 8.21 %6.
    • 0010 2 5.22 %4.
    • 0011 3 8.21 %6.
    • 0010 2 5.22 %4.
    • 0011 3 8.21 %6.
    • 0010 2 5.22 %4.
    • 0100 4 11.34 %9.
      • 2-3 0010 2 ⇒ Table 7: Cross Section with Single Cut
        • 0011 3 ⇒
      • 2-4 0010 2 ⇒
        • 0100 4 ⇒
    • 0010 2 5.22 %10. Chromosome 10_Based Objective Function f(x) Fitness Function %
    • 0011 3 8.21 %17.
    • 0010 2 5.22 %10.
    • 0011 3 8.21 %17.
    • 0010 2 5.22 %10.
    • 0011 3 8.21 %17.
    • 0010 2 5.22 %10.
  • 0 001 1 2.42 %5.