1. Homepage
  2. Exam
  3. [2021] Leeds - COMP3910 Combinatorial Optimisation - Final Exam - Q2-8 Knapsack Problem

[2021] Leeds - COMP3910 Combinatorial Optimisation - Final Exam - Q2-8 Knapsack Problem

This question has been solved
Engage in a Conversation

Questions 2-8 deal with the same instance of the knapsack problem. In that instance, there are n = 4 items of different sizes and profit values, and no repeated items (there is exactly one item of each type). The characteristics of the items are given in the table: CourseNana.COM

  CourseNana.COM

Notice that the items are numbered in the decreasing order of the ratios cj CourseNana.COM

  CourseNana.COM

The knapsack capacity is b = 13, which means that we can place only a selection of items in the knapsack with the sum of sizes not exceeding 13. It is required to select items so that the sum of their profits is as high as possible and the knapsack capacity is not exceeded. CourseNana.COM

  CourseNana.COM

If the items are indivisible, then we can either place a whole item or reject it. The corresponding ILP formulation is of the form: where n = 4 and variables xj indicate whether item j is selected or not. CourseNana.COM

  CourseNana.COM

Question 2 (construction heuristics) [4 marks] CourseNana.COM

Four construction heuristics are stated below. Apply them to instance (1). For each solution found, state the value of the objective function. CourseNana.COM

  CourseNana.COM

2.1 Heuristic “The most profitable item first, with respect to the relative cost, calculated as the ratio profitsize ”. CourseNana.COM

2.2 Heuristic “The most profitable item first, with respect to the absolute cost cj ”. CourseNana.COM

2.3 Heuristic “Largest item first”. CourseNana.COM

2.4 Heuristic “Smallest item first”. CourseNana.COM

  CourseNana.COM

  CourseNana.COM

Question 3 (improvement heuristic) [6 marks] CourseNana.COM

Consider again instance (1) of the knapsack problem. Illustrate how it can be solved by iterative improvement with transpose neighbourhood. To generate solutions, select a sequence of items and place them in the knapsack, one by one, in the order they appear in the sequence, without exceeding the knapsack capacity and without splitting the items. Start with the initial solution which arises from the sequence (4; 1; 3; 2). CourseNana.COM

  CourseNana.COM

Fill in the table presented below, replacing * by your entries. In the last column indicate whether a neighbour is accepted to replace the current one. Perform two iterations. Do not proceed with subsequent iterations. CourseNana.COM

  CourseNana.COM

Question 4 (approximation algorithm for the knapsack problem) [4 marks] CourseNana.COM

Solve instance (1) of the knapsack problem by the approximation algorithm Ext-Greedy. It is known that Ext-Greedy is an approximation algorithm with the approximation ratio = 1=2. Using the definition of an approximation algorithm, derive an upper bound on the optimal value of the objective. CourseNana.COM

Submission: CourseNana.COM

  solution found by Ext-Greedy and the corresponding value of the objective; CourseNana.COM

  an upper bound on the optimal value of the objective. CourseNana.COM

  CourseNana.COM

Question 5 (Branch-and-Bound for the knapsack problem) [12 marks] CourseNana.COM

Solve instance (1) of the knapsack problem by the Branch-and-Bound algorithm. Use the implementation presented in Chapter 7 “Branch-and-Bound Algorithm”. Note one point of difference in the problem definition: the problem in Chapter 7 has the constraint “xj and integer”, while the current problem assumes Therefore the search tree for instance (1) should have two child nodes per node, corresponding to xj = 1 CourseNana.COM

and xj = 0. CourseNana.COM

  CourseNana.COM

The formula for calculating upper bounds remains the same: CourseNana.COM

To get started, consider the search tree presented in Fig.1, with the left subtree fully elaborated and the right subtree being incomplete. CourseNana.COM

  CourseNana.COM

Complete the right subtree. Use the depth-first strategy. Indicate the upper bounds for the nodes and updates of the lower bound. Number the nodes in the order they are generated, starting from 11 (there are 10 nodes already produced). Specify the optimal solution and the corresponding objective value. CourseNana.COM

Get the Solution to This Question

WeChat WeChat
Whatsapp WhatsApp
Leeds代写,COMP3910代写,Combinatorial Optimisation代写,Leeds代编,COMP3910代编,Combinatorial Optimisation代编,Leeds代考,COMP3910代考,Combinatorial Optimisation代考,Leedshelp,COMP3910help,Combinatorial Optimisationhelp,Leeds作业代写,COMP3910作业代写,Combinatorial Optimisation作业代写,Leeds编程代写,COMP3910编程代写,Combinatorial Optimisation编程代写,Leedsprogramming help,COMP3910programming help,Combinatorial Optimisationprogramming help,Leedsassignment help,COMP3910assignment help,Combinatorial Optimisationassignment help,Leedssolution,COMP3910solution,Combinatorial Optimisationsolution,