Question: September 2 2 , 2 0 2 4 Problem: Consider the Linear Knapsack Problem ( LKP ) Maximize f ( x ) = i =

September 22,2024
Problem: Consider the Linear Knapsack Problem (LKP)
Maximize f(x)=i=116vixi such that
i=116wixiW
where xT=(x1,x2,cdots,n),n=16,xi s are the binary optimization variables. The data for
the problem are given below ,
(6,8),(8,14),(13,4),(15,9),(16,10),(13,11),(9,17),(25,12)
with total capacity W=25.
Question 1: Consider the above Knapsack Problem (1)-(2) and construct the following
penalty function
F(x)=f(x)-R(x)
where R is the penalty parameter and (x)=max{0,j=116wjxj-W}.
Solve the problem by the binary coded Genetic Algorithm (GA) using the penalty function
F(x) as your fitness function. Parameters for GA: pc=1,p=10-3, Population size
N=20, children per iteration m=6, maximum iteration =30. Use the penalty parameter
R=50 for the fitness function.
September 2 2 , 2 0 2 4 Problem: Consider the

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!