A branch & bound algorithm for the 0-1 mixed integer knapsack problem with linear multiple choice constraints

https://doi.org/10.1016/S0305-0548(03)00021-2Get rights and content

Abstract

This paper presents a branch and bound (B&B) algorithm for the 0-1 mixed integer knapsack problem with linear multiple choice constraints. The formulation arose in an application to transportation management for allocating funds to highway improvements. Several model properties are developed and utilized to design a B&B solution algorithm. The algorithm solves at each node of the B&B tree a linear relaxation using an adaptation of an existing algorithm for the linear multiple choice knapsack problem. The special relationship between the parent and children subproblems is exploited by the algorithm. This results in high efficiency and low storage space requirements. The worst case complexity of the algorithm is analyzed and computational results that demonstrate its efficiency in the average case are reported.

Scope and purpose statement

Optimal resource allocation is one of the most widely studied areas in mathematical programming. We introduce a single resource allocation model that considers both discrete and continuous activities. The model is a natural extension of the knapsack problem with both binary and continuous variables. It has application in transportation management for allocating funds to highway improvements. We explore in depth the special structure of the problem and we present important theory that arises from its study. After identifying the fundamental properties of the problem, we present an efficient solution procedure that outperforms existing commercial software packages.

Introduction

In this paper, we present an algorithm for the 0-1 mixed integer knapsack problem with linear multiple choice constraints (MIMCK), defined as follows:MIMCK:Maxk∈Si∈Rkpkixki+k∈Sj∈Dkqkjykj,s.t.k∈Si∈Rkckixki+k∈Sj∈Dkdkjykj⩽b,i∈Rkxki⩽lk,∀k∈S,xki⩾0,i∈Rk,∀k∈S,ykj∈{0,1},j∈Dk,∀k∈S.

The traditional Knapsack Problem usually deals with either continuous or discrete decision variables. The above knapsack formulation contains both continuous and discrete decision variables. These variables are partitioned into disjoint sets whose indices are contained in set S. For each kS, sets Rk and Dk contain the indices of continuous and discrete variables, respectively, associated with set k. The sum of all continuous variables within each set k is restricted to at most lk by the set of constraints (3), which are called multiple choice constraints. For consistency with the existing literature we use the terms profit coefficients for parameters pki and qkj and cost coefficients for parameters cki and dkj. In our case all these coefficients are positive numbers. The objective function (1) maximizes total profit, while constraint (2) limits the total budget (resource) amount used to a maximum value b. Constraints , restrict the continuous variables to nonnegative values and the discrete variables to (0,1) values, respectively.

The above formulation can be used to model the allocation of funds to highway improvements. In that context, the decision variables of the problem represent continuous and discrete highway improvements. The highways are divided into segments, k, with homogeneous characteristics. Disjoint sets Rk and Dk denote the sets of continuous and discrete improvements, respectively, considered for highway segment k. The length of highway segment k over which continuous improvement i is carried out is represented by the variable xki. Parameters pki and cki represent the profit and cost, respectively, incurred per unit length of application of this continuous improvement. Examples of continuous highway improvements are paving, lighting, and lane widening. The selection or not of a discrete improvement j that is considered at a specific point of highway segment k is represented by the variable ykj. Such improvements are represented by binary variables, because there are only two options available for each improvement, implementation or not. The smoothing of a dangerous curve and the repair of an overhead bridge are examples of discrete highway improvements. Parameters qkj and dkj represent the profit and cost, respectively, incurred if discrete improvement j is implemented on highway segment k(ykj=1). Parameter b represents the available budget for the implementation of the considered improvements. Parameter lk denotes the length of highway segment k.

The multiple choice constraints are introduced to accommodate the interactions that arise among different continuous improvements. In some cases, the cost incurred to apply two or more distinct continuous improvements over the same part of a highway segment may be higher or lower than the sum of the costs of these improvements considered independently. For example, total cost may decrease when resources are being shared. In a similar manner, the actual profit incurred from the application of two or more continuous improvements over the same part of a highway segment may be lower or higher than the profit computed when these improvements are treated independently. In general, the combined profit is expected to be lower except in the case of synergy between improvements. The procedure described next is used to handle the case in which such interactions are present and motivates the introduction of the multiple choice constraints.

For each combination of continuous improvements within a segment, another variable is defined, representing the length of this segment over which all these individual improvements are applied. The profit and cost of this new variable is equal to the actual profit and cost incurred when all the improvements that are associated with it are implemented. Suppose that three continuous improvements are considered for highway segment k. Then, the following variables are defined: Variable xk1, xk2 and xk3, represents the length of highway segment k over which single improvement 1,2 and 3 is implemented, respectively. Three combined variables are introduced representing segment lengths over which two improvements are implemented, i.e. 1 and 2 (xk4), 1 and 3 (xk5), and 2 and 3 (xk6). Finally, a combined variable is introduced that represents the segment length over which all three improvements are implemented (xk7). Thus, seven variables should be used for this segment, of which three represent individual improvements and four represent combined improvements. The sum of all seven variables should not exceed the length of highway segment k.

The above described technique for the treatment of interactions among continuous improvements will increase the number of continuous decision variables of the model. Nevertheless, in practical situations this increase remains manageable, since the number of single continuous highway improvements considered in each highway segment is small. In addition, as it is shown later, the algorithm is very efficient in handling continuous variables.

A key assumption in the above formulation is that discrete improvements are associated with different points of a highway. Therefore, no interactions between discrete improvements are present. In addition, we assume that no interactions between discrete and continuous improvements exist. This is a reasonable assumption for discrete improvements that are applied to “idealized” points of a highway. Finally, we assume that setup costs for continuous variables can be ignored.

The remainder of this paper is organized as follows: Section 2 is divided into three parts. The first part presents a brief description of an existing algorithm for the linear multiple choice knapsack problem. After slightly modifying that algorithm to accommodate the needs of our model, we utilize it in the second part of Section 3 towards the development of a B&B algorithm for MIMCK. In the third part we present a numerical example that illustrates the application of the proposed algorithm. In Section 4 we analyze the worst case complexity of the algorithm and we present computational results showing its average case efficiency. Finally, in Section 5 we summarize the conclusions obtained from this work and we point to directions for future research.

Section snippets

Solution procedure

In this section we examine several important properties of MIMCK and we develop an efficient B&B algorithm for its solution. In order to analyze its special structure, we consider first the model without the binary variables. This is the widely investigated linear multiple choice knapsack problem. The algorithm introduced for this problem is a slight modification of an existing algorithm. This modification was necessary to accommodate the slightly different needs of the problem under

Computational complexity

In this section, we analyze the complexity of Algorithm MIMCK and we present some computational results obtained from computer experimentation. The special case of MIMCK without continuous variables is the general binary knapsack problem which is NP-hard. Therefore, problem MIMCK is NP-hard too.

Let Nk be the number of (continuous) variables in multiple choice set k,N=∑k∈SNk, Nmax=maxk∈SNk and r=|S|. The time needed for the construction of the multiple choice lists in Step 0 of Algorithm LMCK is

Conclusions

In this paper, we introduced the 0-1 mixed integer knapsack problem with linear multiple choice constraints. This is a generalization of two widely known problems, the linear multiple choice knapsack and the binary knapsack problems. This problem arises in an application of transportation management where limited funds have to be allocated to continuous and discrete highway improvements. Several model properties were developed which were utilized to design a B&B solution algorithm. The

George Kozanidis holds a Diploma in Mechanical and Industrial Engineering from the University of Thessaly in Volos, Greece, and a Ph.D. in Industrial Engineering, from Northeastern University in Boston, MA. His research work has appeared in the International Journal Transportation Research Part A: Policy and Practice.

References (18)

There are more references available in the full text version of this article.

Cited by (20)

  • Knapsack problems — An overview of recent advances. Part I: Single knapsack problems

    2022, Computers and Operations Research
    Citation Excerpt :

    Zhong and Young (2010) described a real-world case in which the decision on the allocation of funds to alternative projects was solved through an MCKP model. Kozanidis and Melachrinoudis (2004) and Kozanidis et al. (2005) discussed continuous and mixed-integer knapsack problems that include multiple-choice type constraints imposing, for each class, an upper bound on the sum of the corresponding continuous variables. They proved that the former problem can be exactly solved by a two-phase greedy algorithm and developed a B&B approach for the exact solution of the latter.

  • Optimal asset management strategies for mixed transit fleet

    2018, Transportation Research Part A: Policy and Practice
    Citation Excerpt :

    These problems have typically been formulated as linear programming or non-linear programming, integer, mixed integer and dynamic programming models. ( Ahmed, 1983; Ariaratnam and MacLeod, 2002; Srour et al., 2006; Uyeno and Willoughby, 1995; Melachrinoudis and Kozanidis, 2002; Kozanidis and Melachrinoudis, 2004). Solution methods for these optimization problems are chosen depending on the nature of the problem, although traditionally, they are solved by various forms of gradient search methods (Deb, 2001) that assume the search space to be uniform and unimodal for a unique solution.

  • An exact approach for the Blocks Relocation Problem

    2015, Expert Systems with Applications
    Citation Excerpt :

    A B&B is an optimal algorithm to solve hard and complex optimization problems efficiently. The suitable computational results obtained in heterogeneous application fields such as scheduling (Kianfar & Moslehi, 2012), pattern recognition (Nakariyakul, 2014), or knapsack problems (Kozanidis & Melachrinoudis, 2004) encourage us to devise a B&B algorithm for addressing the BRP. A B&B algorithm systematically explores a searching tree from a root node toward nodes at low levels on the basis of a given objective function.

  • Preserving an aging transit fleet: An optimal resource allocation perspective based on service life and constrained budget

    2013, Transportation Research Part A: Policy and Practice
    Citation Excerpt :

    Similar to the diverse objectives and requirements of the allocation problem, the modeling and solution approaches also vary. However, the most common modeling approach is optimization, with linear programming (LP) as the most popular tool because of its faster convergence feature (Khasnabis et al., 2004; Kozanidis and Melachrinoudis, 2004). Non-linear programming can be used to model different systems realistically.

  • Optimal resource allocation among transit agencies for fleet management

    2010, Transportation Research Part A: Policy and Practice
View all citing articles on Scopus

George Kozanidis holds a Diploma in Mechanical and Industrial Engineering from the University of Thessaly in Volos, Greece, and a Ph.D. in Industrial Engineering, from Northeastern University in Boston, MA. His research work has appeared in the International Journal Transportation Research Part A: Policy and Practice.

Emanuel Melachrinoudis is an Associate Professor of Industrial Engineering and Operations Research at Northeastern University. He received his Ph.D. in Operations Research from the University of Massachusetts. His research interests are in the areas of Location Analysis, Routing, Supply Chain Management and Multiple Criteria Decision Making. He has published in journals such as Management Science, European Journal of Operational Research, Naval Research Logistics, IIE Transactions, Networks, International Transactions of Operational Research, and Transportation Science.

View full text