Next Article in Journal
Investigating the Impact of Random Field Element Size on Soil Slope Reliability Analysis
Next Article in Special Issue
A Causal Inference Methodology to Support Research on Osteopenia for Breast Cancer Patients
Previous Article in Journal
Catch the Cyber Thief: A Multi-Dimensional Asymmetric Network Attack–Defense Game
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Knapsack Balancing via Multiobjectivization

by
Ignacy Kaliszewski
and
Janusz Miroforidis
*
Systems Research Institute, Polish Academy of Sciences, 6 Newelska Street, 01-447 Warsaw, Poland
*
Author to whom correspondence should be addressed.
Appl. Sci. 2024, 14(20), 9236; https://doi.org/10.3390/app14209236
Submission received: 19 August 2024 / Revised: 16 September 2024 / Accepted: 9 October 2024 / Published: 11 October 2024

Abstract

:
In this paper, we address the aspect of knapsack balancing in the classic knapsack problem. Recognizing that excessive dispersion in the objective function or constraint coefficients of the optimal solution can be undesirable, we propose, when appropriate, to control this effect through problem multiobjectivization. By multiobjectivization, we mean the addition of one or more objective functions that aim to shift the original problem’s optimal solutions towards Pareto optimal solutions of the multiobjectivized problem, reducing the dispersion of the respective coefficients. We detail how the knapsack balance aspect can be incorporated into the standard knapsack problem model and demonstrate the functionality of this enriched model through illustrative examples.

1. Introduction and Motivation

The knapsack problem is one of the best studied combinatorial optimization problems (see, e.g., [1,2]). It is defined as follows: Given a set N : = { 1 , , n } of items and a knapsack with a maximal weight C, each item i , i = 1 , , n , is characterized by its profit p i > 0 and weight w i > 0 .
A subset S of items that together are not heavier than C and provide the highest sum of profits is to be determined. This problem can be formulated as a Linear Binary Programming (LBP) problem as follows:
S u m KP : max S u m ( x ) : = i = 1 n p i x i s . t . x X 0 : = { x | i = 1 n w i x i C , x i { 0 , 1 } , i = 1 , , n } .
Many practical decision problems can be modeled as the knapsack problem or one of its variants (see, e.g., [3]). The knapsack problem can also be used as sub-problems of more complex models (see, e.g., [4,5]). As an illustration, let us assume that a farmer models the production of the farm using the knapsack problem. The farm consists of several lots; each lot can accommodate just one crop, yielding a given profit for a given workload. The problem is to assign crops to lots to maximize the total profit under a limited workload budget. To mitigate risks inherent to agriculture, a portfolio of crops rather than a single crop is advisable. Crops yielding small profits may be not very desirable. Prices of crops yielding high profits may vary significantly. Likewise, serving a collection of crops with low and high workload may rise logistic concerns. In consequence, a balanced crop portfolio is of interest, even if portfolio balancing inevitably deteriorates the optimal total profit as compared to the total profit when balancing is not accounted for. Although the problem can be modeled by a more complex, and perhaps more realistic, formulation, the knapsack problem has the advantage to be rather simple. A mechanism to confine the objective function and/or the constraint coefficient dispersion at the optimal solution while retaining the knapsack problem structural simplicity would be of interest.
The example brings us to the issue of knapsack balancing. We can attempt to balance the objective function coefficients, the constraint coefficients, or both at once. In contrast to balancing mechanisms proposed in the literature on combinatorial optimization (see, e.g., [6]), here we propose to balance with the Nash social welfare function that maximizes the product of all quantities that have to be balanced (in the original work of Nash those were individual utilities) ([7]). A distinguishing property of this function is that when the sum of continuous quantities (all positive) is tied to a certain positive value, the maximum of this function is achieved when all quantities are equal.
As seen in Figure 1, function y 1 + y 2 equally assesses all three elements (filled discs), as they all are located on the same contour (the solid line), whereas function y 1 · y 2 differentiates them as they are located on two different contours (dashed lines). Moreover, the latter function has a higher value for the element with y 1 = y 2 than for elements with y 1 y 2 .
As shown below, in the context of the knapsack problem, this function has plausible properties, both in terms of balancing and computing.
We approach the problem of knapsack balancing through a multiobjective problem formulation. Multiobjective formulations offer a framework by which some seemingly hidden aspects of underlying decision problems can be incorporated into optimization models. A single-objective optimization model is multiobjectivized by keeping the original objective function and adding new objective functions representing the new aspects that are to be considered. The compromises between the need to optimize the original objective function and the new ones have to be managed using appropriate multiobjective optimization techniques.
The term ’multiobjectivization’ was introduced by Knowles et al. in 2001 ([8]) in the context of evolutionary optimization. Ma et al. ([9]) claim that using multiobjectivization to solve single-objective problems within evolutionary optimization
can reduce the number of local optima, create new search paths from local optima to global optima, attain more incomparability solutions, and/or improve solution diversity”.
Klamroth and Tind ([10]) discussed reformulations of single-objective problems to multiobjective ones in the context of exact optimization. In [11], multiobjectivization was applied to exploit the specific structure of multiple-choice constraints in the multiple-choice knapsack problem. This idea was further explored in [12].
The main contributions of this article are summarized as follows:
  • We introduce knapsack balancing as a new aspect of the knapsack problem.
  • We demonstrate how to incorporate the aspect of knapsack balancing into the knapsack problem standard model.
  • We provide a formal proof of the correctness of our approach.
  • We demonstrate working of the enriched knapsack problem model on illustrative examples.
As discussed in Section 2, knapsack balancing can be interpreted as part of a broader concept of making balanced or fair decisions. This concept was introduced first in the qualitative decision theory (see the reference in the next section) but, to the best of the authors’ knowledge, this paper presents the first fully quantitative treatment of this issue within the context of the knapsack problem.
This article is organized as follows. In Section 2, related works are discussed. Section 3 shows how to incorporate knapsack balancing while staying within the framework of the underlying knapsack problem and mixed-integer linear optimization. In Section 4, we propose a bi-objective formulation of the knapsack problem that accounts for trade-offs between values of the the original knapsack problem objective function and a knapsack balance measure. Section 5 provides illustrative examples, and Section 6 concludes the paper.

2. Related Works

In the literature, there exist many extensions to S u m KP problem formulation (see, e.g., [13,14]). However, the knapsack problem with a product objective function has received limited attention. In a 2018 paper [15], the authors claim that they were the first to consider the knapsack problem with the product objective function. A 2022 survey [13] lists just three papers on this subject, namely [16], where it is shown that the problem is weakly N P –hard; [15], where mixed-integer linear and nonlinear programming formulations of the problem and a dynamic programming algorithm for its exact solution are presented; and [17], where the first fully polynomial time approximation scheme for the problem was presented. The latter has been recently extended in [18] for a wide class of the knapsack problem generalizations.
It is worth mentioning that the issue of balance of attribute values has emerged in behavioral decision theory early. Simonson ([19]) and Simonson and Tversky ([20]) hypothesize that the attractiveness of an object is enhanced if it is an intermediate object in the choice set and is diminished if it is an extreme object, an effect they call extremeness aversion. The hypothesis is further elaborated in [21,22], where it is argued that an object with equal attribute values will be perceived as the compromise object even when it is not the middle object. The hypotheses are supported by data studies but no formal model is offered.
In [6], the aspect of balance (fairness) in combinatorial optimization is addressed. The authors consider four common measures of the balance of a set of numbers, and in the context of elements of a set balance means elements as equal as possible. Based on case studies, the authors conclude that no measure of balance is systematically better than the others. Some general guidelines on what measure of balance to use depending on the given optimization problem are also presented.
As mentioned, in the literature on the knapsack problem (cf., e.g., [13]), it is argued that a viable option to maximize i S p i is to maximize
i S p i ,
i.e., to maximize the product of all profits of items selected for the knapsack (see, e.g., [15,18]).
Our inspiration to use function (2) as a tool to address the issue of attribute balance can be referred to the game theory. In that context, Nash ([7]) proposed to use for the value function the product of attribute values, as an option to the sum of attributes. The latter is much more prone to equally assess alternatives with highly scattered attribute values and alternatives with concentrated attribute values than the former (Figure 1).
In the Non-Linear Binary Programming (NLBP) context, function (2) has an equivalent form (cf. [15]):
P r o d p ( x ) : = i = 1 n p i x i .
This equivalency stems from the properties of the exponential function and the fact, that each subset of items S N is represented by vector x { 0 , 1 } n , where x i = 1 when i S , and x i = 0 otherwise, cf. problem (1).
Function (3) is the binary form of the Cobb–Douglass function:
a i = 1 k x i α i ,
where x i are continuous, a and α i are positive parameters, extensively used in the production theory (cf., e.g., [23]). Below, we use function (3) to define the knapsack problem with the product objective function.

3. Balancing Knapsacks by P rod p Objective Function

The knapsack problem with the product objective function is formulated as the following NLBP problem:
P r o d p KP : max P r o d p ( x ) s . t . x X 0 .
In P r o d p KP, a subset S N of items with the most balanced profits is sought by means of maximizing P r o d p ( x ) . The following example illustrates the effect of item profits balancing at the optimal solution produced by P r o d p ( x ) objective function.
Example 1.
We demonstrate the effect of item profits balancing produced by P r o d p ( x ) objective function by the example with profits and weights given in Table 1 ( n = 20 ), for two values of C (the right-hand side of the constraint), namely C = 550 and C = 300 .
To measure the balance of item profits at optimal solutions ( x o p t ), we use the sum of squared deviations from their mean (merits of this function in the context of combinatorial optimization are discussed in, already cited, [6]), namely
L 2 - DEV ( I ( x o p t ) ) : = i I ( x o p t ) ( p i μ ) 2 ,
where I ( x o p t ) = { i | x i o p t = 1 } , and mean μ is calculated over p i , i I ( x o p t ) .
Remark 1.
L 2 - DEV ( · ) is a natural dispersion measure but we cannot use it as an objective function because a. it is nonlinear, b. μ is a function of x, and we intend to stay within the class of mixed-integer linear optimization problems. To this aim, L 2 - DEV ( · ) can be only calculated after the optimization terminates.
  • C = 550 . The optimal solution to P r o d p KP:
  • x o p t _ p r o d = ( 1 , 1 , 1 , 1 , 0 , 1 , 1 , 1 , 1 , 1 , 0 , 1 , 1 , 0 , 1 , 1 , 1 , 1 , 1 , 0 ) ,
  • profits of items selected to x o p t _ p r o d :
  • P o p t _ p r o d : = { 100 , 220 , 90 , 400 , 400 , 205 , 120 , 160 , 580 , 140 , 100 , 650 , 320 , 480 , 80 , 60 } ,
  • L 2 - DEV ( I ( x o p t _ p r o d ) ) = 546635.937 (further on, we round all numbers to the third decimal place).
For comparison, we solve an instance of S u m KP with the same data. The optimal solution to S u m KP:
  • x o p t _ s u m = ( 1 , 1 , 1 , 0 , 0 , 0 , 0 , 1 , 0 , 1 , 0 , 0 , 0 , 1 , 1 , 1 , 1 , 1 , 1 , 1 ) ,
  • profits of items selected to x o p t _ s u m :
  • P o p t _ s u m : = { 100 , 220 , 90 , 120 , 580 , 1300 , 650 , 320 , 480 , 80 , 60 , 2550 } ,
  • L 2 - DEV ( I ( x o p t _ s u m ) ) = 5799891.667 .
As one can see, in the terms of L 2 - DEV ( · ) , set P o p t _ p r o d is more balanced than set P o p t _ s u m (under the same constraint set). On the other hand, S u m ( x o p t _ p r o d ) = 4105 < 6550 = S u m ( x o p t _ s u m ) since knapsack balancing is made at the cost of a deterioration of the optimal value for S u m KP problem.
  • C = 300 . The optimal solution x o p t _ p r o d to P r o d p KP:
  • x o p t _ p r o d = ( 1 , 1 , 1 , 0 , 0 , 0 , 1 , 1 , 1 , 0 , 0 , 1 , 1 , 0 , 1 , 1 , 1 , 1 , 1 , 0 ) ,
  • profits of items selected to x o p t _ p r o d :
  • P o p t _ p r o d : = { 100 , 220 , 90 , 205 , 120 , 160 , 140 , 100 , 650 , 320 , 480 , 80 , 60 } ,
  • L 2 - DEV ( I ( x o p t _ p r o d ) ) = 372223.077 .
As previously, we solve for comparison S u m KP with the same data.
  • The optimal solution to S u m KP:
  • x o p t _ s u m = ( 1 , 0 , 1 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 1 , 1 , 1 , 1 , 1 , 1 ) ,
  • profits of items selected to x o p t _ s u m :
  • P o p t _ s u m : = { 100 , 90 , 650 , 320 , 480 , 80 , 60 , 2550 } ,
  • L 2 - DEV ( I ( x o p t _ s u m ) ) = 4942287.5 .
Again, in the context of measure L 2 - DEV ( · ) , set P o p t _ p r o d is more balanced than set P o p t _ s u m . On the other hand, S u m ( x o p t _ p r o d ) = 2725 < 4330 = S u m ( x o p t _ s u m ) .
In general, by solving P r o d p KP, we obtain the most balanced knapsack, and by solving S u m KP, we obtain the most profitable one. The example shows the existence of a profit–balance trade–off. This naturally leads us to a bi-objective knapsack problem formulation.

4. The Bi-Objective Knapsack Problem with S um and P rod p Objective Functions

4.1. Multiobjective Optimization

In this section, we recall basic facts from multiobjective optimization that are needed in the rest of this work. In particular, we formulate the MultiObjective Programming (MOP) problem, and we recall a method for the derivation of Pareto optimal solutions with the use of the Chebyshev scalarization.
Let X 0 : = { x R n | g j ( x ) b j , j = 1 , , m } , g j : R n R . The MOP problem is defined as follows:
vmax f ( x ) s . t . x X 0 ,
where f : R n R k , f = ( f 1 , , f k ) , f l : R n R , l = 1 , , k , k 2 , are objective functions, and “vmax” is the operator of deriving (but not necessarily actually computing!) set N that contains all Pareto optimal solutions x (N is the Pareto optimal set). We say that x ¯ X 0 is Pareto optimal, if for any x X 0 , f l ( x ) f l ( x ¯ ) , l = 1 , , k , implies f ( x ) = f ( x ¯ ) . We also say that f ( x ) , x X 0 , is the outcome of x. Set f ( N ) is called the Pareto front. An element of set f ( N ) is called the Pareto optimal outcome.
According to the well-established result ([24,25,26,27]), x is Pareto optimal (actually, x is properly Pareto optimal, see, e.g., [24,25,26,27]) if and only if it solves the Chebyshev scalarization of problem (6), namely
min max l λ l ( y l * f l ( x ) ) + ρ e k ( y * f ( x ) ) s . t . x X 0 ,
where λ l > 0 , l = 1 , , k , e k = ( 1 , 1 , , 1 ) , y l * = y ^ l + ε , y ^ l = max x X 0 f l ( x ) , l = 1 , , k , ε > 0 , and ρ is a positive “sufficiently small” number. We assume that y ^ l < , l = 1 , , k .
The necessity of resorting to the Chebyshev scalarization instead of the simpler and much more popular linear scalarization, i.e., the weighted sum of the objective functions, comes from that the former can derive any Pareto optimal solution, whereas the latter can derive, in general, only a subset of them.
The linearized version of problem (7) has the following form.
min s s . t . s λ l ( y l * f l ( x ) ) + ρ e k ( y * f ( x ) ) , l = 1 , , k , x X 0 .
In particular, if functions f l ( x ) , l = 1 , , k , are linear and the definition of X 0 is consistent with the mixed-integer linear class of problems, then the problem (8) remains linear or mixed-integer linear or integer linear. In the following, we will assume that Pareto optimal solutions are computed by solving problem (8) with varying λ = ( λ 1 , . . . , λ k ) . Given λ , x P o p t ( λ ) denotes the Pareto optimal solution designated by λ , that is a solution to problem (7) with that λ .

4.2. The Bi-Objective S u m - P r o d p KP

By analogy to dropping an anchor from a vessel, solving S u m KP (see (1)) is like anchoring its optimal solution to the aspect of maximizing the total profit, while neglecting the balance among item profits. Just as controlled dragging of the anchor can guide a vessel into a more favorable position, it is of interest to investigate the effect of “dragging” the optimal solution of S u m KP towards more balanced ones and observe the effects in the form of trade-offs between these two aspects. To this aim, we formulate the following bi-objective NLBP problem:
S u m - P r o d p KP : vmax S u m ( x ) P r o d p ( x ) s . t . x X 0 .
As all p i are positive, one can define function
P r o d p ˜ ( x ) : = ln P r o d p ( x ) = ln i = 1 n p i x i = i = 1 n ln p i x i = i = 1 n x i ln p i
and formulate the following logarithmic transformation of S u m - P r o d p KP :
L n - S u m - P r o d p KP : vmax S u m ( x ) P r o d p ˜ ( x ) s . t . x X 0 .
L n - S u m - P r o d p KP is the bi-objective LBP problem.
Proposition 1.
Pareto optimal sets of problem S u m - P r o d p KP and problem L n - S u m - P r o d p KP coincide.
Proof. 
Since the logarithmic function is an increasing function, function P r o d p ˜ ( x ) generates on X 0 the same linear order that function P r o d p ( x ) does. Hence, function f ˜ ( x ) = ( S u m ( x ) , P r o d p ˜ ( x ) ) generates on X 0 the same partial order that function f ( x ) = ( S u m ( x ) , P r o d p ( x ) ) does. Problems S u m - P r o d p KP and L n - S u m - P r o d p KP have the same feasible set X 0 , hence their Pareto optimal sets coincide. □
By Proposition 1, the following holds.
Corollary 1.
Given λ, x P o p t ( λ ) is Pareto optimal solution to problem L n - S u m - P r o d p KP if and only if it is Pareto optimal solution to problem S u m - P r o d p KP .
Likewise, we can apply the above consideration to the left-hand side of the constraint, formulating the bi-objective problem:
S u m - P r o d w KP : vmax S u m ( x ) P r o d w ( x ) : = i = 1 n w i x i s . t . x X 0 .
Function P r o d w measures the balance of weights of items selected for the knapsack.
As all w i are positive, one can define function
P r o d w ˜ ( x ) : = ln P r o d w ( x ) = i = 1 n x i ln w i
and formulate the following logarithmic transformation of S u m - P r o d w KP :
L n - S u m - P r o d w KP : vmax S u m ( x ) P r o d w ˜ ( x ) s . t . x X 0 .
Again, L n - S u m - P r o d w KP is the bi-objective LBP problem.
Problem L n - S u m - P r o d p KP is solved with the linearized version (8) of the Chebyshev scalarization (7), and has the form:
min s s . t . s λ 1 ( y 1 * S u m ( x ) ) + ρ ( ( y l * S u m ( x ) ) + ( y 2 * P r o d p ˜ ( x ) ) ) , s λ 2 ( y 2 * P r o d p ˜ ( x ) ) + ρ ( ( y 1 * S u m ( x ) ) + ( y 2 * P r o d p ˜ ( x ) ) ) , x X 0 : = { x | i = 1 n w i x i C , x i { 0 , 1 } , i = 1 , , n } ,
where y 1 * = y ^ 1 + ε , y 2 * = y ^ 2 + ε , ε > 0 , y ^ 1 = max x X 0 S u m ( x ) , y ^ 2 = max x X 0 P r o d p ˜ ( x ) , and ρ is a positive “sufficiently small” number. The counterpart of problem (15) is defined for problem L n - S u m - P r o d w KP similarly. As seen, the generality of the Chebyshev scalarization (it provides the necessary and sufficient conditions for Pareto optimality of solutions regardless of the form of the problem solved) comes at the cost of solving in addition as many as k (in our case k = 2 ) optimization problems. Here the additional optimization problems are the knapsack problems that any reasonable mixed-integer solver nowadays solves in a split second for the number of items up to several thousand.

5. Illustrative Examples

In the examples, to solve bi-objective optimization problems, we use the general methodology of multiobjective optimization outlined in Section 4.1.
  • Example problems
From the 7th multiple constraint knapsack problem (in the format described under https://people.brunel.ac.uk/%7Emastjjb/jeb/orlib/mknapinfo.html, accessed on 5 May 2024) (5 constraints and 50 items) in the Beasley’s OR–Library (https://people.brunel.ac.uk/%7Emastjjb/jeb/orlib/files/mknap1.txt accessed on 5 May 2024), we derived 5 knapsack problems.
In each such problem, denoted S P i p , i = 1 , . . . , 5 , the objective function and ith constraint of the original multiple constraint knapsack problem serve as the objective function and the constraint, respectively. Next, each knapsack problem is reformulated as the corresponding L n - S u m - P r o d p KP problem (see (11)).
  • Pareto front approximations
To derive reasonably informative approximations of Pareto fronts to our example problems (11), we use the following set of λ vectors:
Λ : = { λ R 2 | λ 1 = 1 0.005 j , λ 2 = 1 λ 1 , j N , j > 0 , λ 1 > 0 } .
By this definition, | Λ | = 199 , and λ 1 + λ 2 = 1 for all λ Λ . We assume that λ ’s are ordered due to the decreasing value of their first component, and each λ has a corresponding index, resulting from this order. So, λ 1 = ( 0.995 , 0.005 ) , λ 2 = ( 0.990 , 0.010 ) , , λ 199 = ( 0.005 , 0.995 ) . We also assume that ε = ρ = 0.001 .
Remark 2.
The method to compute Pareto optimal solutions to multiobjective optimization problems applied here can provide, in general, only subsets of Pareto optimal sets, there is no guarantee that all Pareto optimal solutions are derived.
Here, wanting for the illustration to compute as many Pareto optimal solutions as possible, we take advantage of the fact that all instances of problem (11) are solved to optimality in a split second. Thus, the rather large number of λ’s used in the example (in practical terms one can even say extravagantly large) is not an issue.
  • Solver
To derive y ^ and Pareto optimal solutions for each λ Λ , we use Gurobi (version 10.0.0) for Microsoft Windows (x64).
Gurobi ([28]) is a general mixed-integer solver, this means it solves linear and quadratic programming problems with integer variables. It is a commercial product but licensed free for any academic user, with all functionalities available under paid licenses.
In our case, the solver is installed on a laptop equipped with an Intel Core i7-7700HQ CPU with 16 GB RAM.
  • Results
The results for S P 1 p and S P 2 p are reported in Table 2 and Table 3. The results for S P i p , i = 3 , 4 , 5 , are reported in the Appendix A.
In these tables, the row with j = 0 corresponds to the optimal solution of S u m KP, x o p t _ s u m , and the row with j = 200 corresponds to the optimal solution of P r o d p KP, x o p t _ p r o d .
As observed in many multiobjective combinatorial problems (see, e.g., [29]), multiple λ vectors can correspond to the same Pareto optimal outcome. Furthermore, this is also the case for our test problems, e.g., for problem S P 1 p (Table 2) the outcomes of Pareto optimal solutions for λ 2 to λ 46 are the same as those corresponding to λ 1 . Repeated Pareto optimal outcomes for λ Λ are not reported in the tables.
The last column in tables, L 2 - DEV , contains L 2 - DEV ( I ( x P o p t ( λ j ) ) ) of profits of items selected to optimal knapsack x P o p t ( λ j ) for j { 0 , 200 } . For j = 0 and j = 200 , it contains L 2 - DEV ( I ( x o p t _ s u m ) ) and L 2 - DEV ( I ( x o p t _ p r o d ) ) , respectively.
In Figure 2 and Figure 3, Pareto optimal outcomes to problem L n - S u m - P r o d p KP stemming from S P 1 p are shown:
Figure 2: on the S u m (horizontal axis, the more, the better) and P r o d p ˜ (vertical axis, the more, the better) plane,
Figure 3: on the S u m (horizontal axis, the more, the better) and L 2 - DEV (vertical axis, the less, the better) plane. Values of P r o d p ˜ have no practical interpretation, so presenting results on the S u m , L 2 - DEV plane is more reasonable.

6. Conclusions

We have introduced a versatile tool for conducting post-optimal analysis of the classic knapsack problem. Staying within the same class of combinatorial problems as the knapsack problem, namely integer linear optimization, this tool enables us to explore the trade-offs between the optimal value of the underlying problem and the balance of item profits (or item weights). This is achieved through the multiobjectivization of the knapsack problem by adding an auxiliary objective function. The proposed tool therefore makes it possible to identify the decision-maker’s most preferred compromise knapsack. The significance of this development stems from the vast spectrum of practical applications of the knapsack problem and its extensions, as reported in the literature.
Applying the proposed method of knapsack balancing in the context of item profits (or item weights) to other variants of the knapsack problem (e.g., the multidimensional knapsack problem) is rather straightforward, as the only difference would be in feasible sets. For example, in the multiple-choice knapsack problem, balancing can be applied to item profits in selected categories or all categories, as dictated by the decision problem being modeled.
The broader message of this work emphasizes the potential of multiobjectivization for widening the scope of aspects that can be framed into a formal decision-making model. This is a universally valid observation; however, such an opportunity often comes at the cost of increased complexity and computational burden. This in turn often results in limitations of scalability. In this work, we have shown how these challenges can be mitigated through an approach that avoids such limitations.
This article assumes that Pareto optimal solutions are derived using a scalarization technique and exact methods. However, for large-scale instances of knapsack problems where exact solvers cannot determine Pareto optimal solutions in a reasonable time frame, the use of metaheuristics (e.g., the BGA [30] and NSGA-II [31] algorithms) or evolutionary optimization frameworks deriving approximations of the Pareto front (e.g., PKAEO [32]) is a practical alternative.

Author Contributions

I.K.: Conceptualization, Formal analysis, Methodology, Writing—original draft, Writing—review and editing. J.M.: Conceptualization, Software, Formal analysis, Methodology, Writing—original draft, Writing—review and editing. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Each test instance considered can be reproduced based on its detailed description in the article.

Conflicts of Interest

The authors declare no conflicts of interest.

Appendix A

The following three tables present Pareto optimal outcomes to problem L n - S u m - P r o d p KP stemming from knapsack problems S P 3 p , S P 4 p , and S P 5 p , respectively.
Table A1. Pareto optimal outcomes to problem L n - S u m - P r o d p KP stemming from S P 3 p .
Table A1. Pareto optimal outcomes to problem L n - S u m - P r o d p KP stemming from S P 3 p .
j λ 1 j λ 2 j S um P rod p ˜ L 2 - DEV
019,688.000185.824911.322
10.9950.00519,688.000185.824911.322
330.8350.16519,679.000192.538895.297
1330.3350.66519,611.000197.179885.795
1530.2350.76519,576.000200.749877.454
1650.1750.82519,544.000204.245870.672
1810.0950.90519,440.000206.909863.358
1860.0700.93019,380.000207.487862.964
1870.0650.93519,349.000207.904862.007
1890.0550.94519,298.000211.076854.957
1970.0150.98518,503.000214.166840.841
1980.0100.99018,319.000217.168804.718
1990.0050.99518,035.000220.275797.057
20012,457.000231.887324.431
Table A2. Pareto optimal outcomes to problem L n - S u m - P r o d p KP stemming from S P 4 p .
Table A2. Pareto optimal outcomes to problem L n - S u m - P r o d p KP stemming from S P 4 p .
j λ 1 j λ 2 j S um P rod p ˜ L 2 - DEV
019,275.000217.498808.585
10.9950.00519,275.000217.498808.585
90.9550.04519,274.000220.298802.076
560.7200.28019,267.000230.445785.963
1420.2900.71019,249.000233.242779.847
1880.0600.94019,155.000236.792773.983
1990.0050.99518,652.000241.245758.760
20018,652.000241.245758.760
Table A3. Pareto optimal outcomes to problem L n - S u m - P r o d p KP stemming from S P 5 p .
Table A3. Pareto optimal outcomes to problem L n - S u m - P r o d p KP stemming from S P 5 p .
j λ 1 j λ 2 j S um P rod p ˜ L 2 - DEV
017,955.000192.966854.879
10.9950.00517,955.000192.966854.879
320.8400.16017,945.000195.628847.210
410.7950.20517,942.000196.714846.224
730.6350.36517,927.000199.264838.769
1060.4700.53017,903.000201.056837.178
1200.4000.60017,888.000203.606829.870
1300.3500.65017,876.000205.891824.438
1420.2900.71017,858.000206.750823.668
1550.2250.77517,819.000211.088814.514
1700.1500.85017,756.000211.247814.920
1730.1350.86517,732.000213.909808.021
1840.0800.92017,600.000228.255591.583
1910.0450.95517,574.000230.579588.271
1930.0350.96517,557.000234.877583.480
1950.0250.97517,517.000242.248575.717
20016,137.000246.343511.088

References

  1. Kellerer, H.; Pferschy, U.; Pisinger, D. Knapsack Problems; Springer: Berlin/Heidelberg, Germany, 2004. [Google Scholar]
  2. Martello, S.; Toth, P. Knapsack Problems: Algorithms and Computer Implementations; John Wiley and Sons: New York, NY, USA, 1990. [Google Scholar]
  3. Assi, M.; Haraty, R. A survey of the knapsack problem. In Proceedings of the 2018 International Arab Conference on Information Technology (ACIT), Werdanye, Lebanon, 28–30 November 2018; pp. 1–6. [Google Scholar]
  4. Camargo, V.; Mattiolli, L.; Toledo, F. A knapsack problem as a tool to solve the production planning problem in small foundries. Comput. Oper. Res. 2012, 39, 86–92. [Google Scholar] [CrossRef]
  5. Mavrotas, G.; Diakoulaki, D.; Kourentzis, A. Selection among ranked projects under segmentation, policy and logical constraints. Eur. J. Oper. Res. 2008, 187, 177–192. [Google Scholar] [CrossRef]
  6. Olivier, P.; Lodi, A.; Pesant, G. The quadratic multiknapsack problem with conflicts and balance constraints. INFORMS J. Comput. 2021, 33, 949–962. [Google Scholar] [CrossRef]
  7. Nash, J. Two-person cooperative games. Econometrica 1953, 21, 128–140. [Google Scholar] [CrossRef]
  8. Knowles, J.; Watson, R.; Corne, D. Reducing local optima in single-objective problems by multi-objectivization. In Evolutionary Multi-Criterion Optimization; Springer: Berlin/Heidelberg, Germany, 2001; pp. 269–283. [Google Scholar]
  9. Ma, X.; Huang, Z.; Li, X.; Qi, Y.; Wang, L.; Zhu, Z. Multiobjectivization of single-objective optimization in evolutionary computation: A survey. IEEE Trans. Cybern. 2023, 53, 3702–3715. [Google Scholar] [CrossRef]
  10. Klamroth, K.; Tind, J. Constrained optimization using multiple objective programming. J. Glob. Optim. 2007, 37, 325–355. [Google Scholar] [CrossRef]
  11. Bednarczuk, E.; Miroforidis, J.; Pyzel, P. A multi-criteria approach to approximate solution of multiple-choice knapsack problem. Comput. Optim. Appl. 2018, 70, 889–910. [Google Scholar] [CrossRef]
  12. Bednarczuk, E.; Kaliszewski, I.; Miroforidis, J. Approximate solutions to the multiple-choice knapsack problem by multiobjectivization and Chebyshev scalarization. Oper. Res. Decis. 2024; in press. [Google Scholar]
  13. Cacchiani, V.; Iori, M.; Locatelli, A.; Martello, S. Knapsack problems—An overview of recent advances. Part I: Single knapsack problems. Comput. Oper. Res. 2022, 143, 105692. [Google Scholar] [CrossRef]
  14. Cacchiani, V.; Iori, M.; Locatelli, A.; Martello, S. Knapsack problems—An overview of recent advances. Part II: Multiple, multidimensional, and quadratic knapsack problems. Comput. Oper. Res. 2022, 143, 105693. [Google Scholar] [CrossRef]
  15. D’Ambrosio, C.; Furini, F.; Monaci, M.; Traversi, E. On the product knapsack problem. Optim. Lett. 2018, 12, 691–712. [Google Scholar] [CrossRef]
  16. Halman, N.; Kovalyov, M.; Quilliot, A.; Shabtay, D.; Zofi, M. Bi-criteria path problem with minimum length and maximum survival probability. OR Spectr. 2019, 41, 469–489. [Google Scholar] [CrossRef]
  17. Pferschy, U.; Schauer, J.; Thielen, C. Approximating the product knapsack problem. Optim. Lett. 2021, 15, 2529–2540. [Google Scholar] [CrossRef]
  18. Boeckmann, J.; Thielen, C.; Pferschy, U. Approximating single- and multi-objective nonlinear sum and product knapsack problems. Discret. Optim. 2023, 48, 100771. [Google Scholar] [CrossRef]
  19. Simonson, I. Choice based on reasons: The case of attraction and compromise effects. J. Consum. Res. 1989, 16, 158–174. [Google Scholar] [CrossRef]
  20. Simonson, I.; Tversky, A. Choice in context: Tradeoff contrast and extremeness aversion. J. Mark. Res. 1992, 29, 281–295. [Google Scholar] [CrossRef]
  21. Chernev, A. Context effects without a context: Attribute balance as a reason for choice. J. Consum. Res. 2004, 32, 213–223. [Google Scholar] [CrossRef]
  22. Chernev, A. Extremeness aversion and attribute-balance effects in choice. J. Consum. Res. 2004, 31, 249–263. [Google Scholar] [CrossRef]
  23. Jacques, I. Mathematics for Economics and Business, 9th ed.; Pearson Education: Harlow, UK, 2018. [Google Scholar]
  24. Ehrgott, M. Multicriteria Optimization; Springer: Berlin/Heidelberg, Germany, 2005. [Google Scholar]
  25. Kaliszewski, I. Soft Computing for Complex Multiple Criteria Decision Making; Springer: New York, NY, USA, 2006. [Google Scholar]
  26. Kaliszewski, I.; Miroforidis, J.; Podkopaev, D. Multiple Criteria Decision Making by Multiobjective Optimization—A Toolbox; Springer: Cham, Switzerland, 2016. [Google Scholar]
  27. Miettinen, K.M. Nonlinear Multiobjective Optimization; Kluwer Academic Publishers: New York, NY, USA, 1999. [Google Scholar]
  28. GUROBI. 2024. Available online: https://www.gurobi.com/solutions/gurobi-optimizer/ (accessed on 31 September 2024).
  29. Helfrich, S.; Perini, T.; Halffmann, P.; Halffmann, P.; Bol, N.; Ruzika, S. Analysis of the weighted Tchebycheff weight set decomposition for multiobjective discrete optimization problems. J. Glob. Optim. 2023, 86, 417–440. [Google Scholar] [CrossRef]
  30. Kabadurmus, O.; Tasgetiren, M.F.; Oztop, H.; Erdogan, M.S. Solving 0-1 bi-objective multi-dimensional knapsack problems using binary genetic algorithm. Heuristics Optim. Learn. Stud. Comput. Intell. 2021, 906, 51–67. [Google Scholar]
  31. Deb, K.; Pratap, A.; Agarwal, S.; Meyarivan, T. A fast and elitist multiobjective genetic algorithm: NSGA-II. IEEE Trans. Evol. Comput. 2002, 6, 182–197. [Google Scholar] [CrossRef]
  32. Zuo, M.; Gong, D.; Wang, Y.; Ye, X.; Zeng, B.; Meng, F. Process knowledge-guided autonomous evolutionary optimization for constrained multiobjective problems. IEEE Trans. Evol. Comput. 2023, 28, 193–207. [Google Scholar] [CrossRef]
Figure 1. Properties of functions y 1 + y 2 and y 1 · y 2 .
Figure 1. Properties of functions y 1 + y 2 and y 1 · y 2 .
Applsci 14 09236 g001
Figure 2. Pareto optimal outcomes to problem L n - S u m - P r o d p KP stemming from S P 1 p ; horizontal axis: S u m , vertical axis: P r o d p ˜ .
Figure 2. Pareto optimal outcomes to problem L n - S u m - P r o d p KP stemming from S P 1 p ; horizontal axis: S u m , vertical axis: P r o d p ˜ .
Applsci 14 09236 g002
Figure 3. Pareto optimal outcomes to problem L n - S u m - P r o d p KP stemming from S P 1 p ; horizontal axis: S u m , vertical axis: L 2 - DEV .
Figure 3. Pareto optimal outcomes to problem L n - S u m - P r o d p KP stemming from S P 1 p ; horizontal axis: S u m , vertical axis: L 2 - DEV .
Applsci 14 09236 g003
Table 1. Profits and weights of items in Example 1.
Table 1. Profits and weights of items in Example 1.
i = 1 , , 10
p i 10022090400300400205120160580
w i 8241380708045152890
i = 11 , , 20
p i 400140100130065032048080602550
w i 130322012040302063180
Table 2. Pareto optimal outcomes to problem L n - S u m - P r o d p KP stemming from S P 1 p .
Table 2. Pareto optimal outcomes to problem L n - S u m - P r o d p KP stemming from S P 1 p .
j λ 1 j λ 2 j S um P rod p ˜ L 2 - DEV
017,038.000185.209859.335
10.9950.00517,038.000185.209859.335
470.7650.23517,021.000205.085816.100
1800.1000.90016,731.000207.331809.829
1840.0800.92016,660.000208.565806.430
1870.0650.93516,609.000212.045799.082
1920.0400.96016,430.000212.977607.430
1930.0350.96516,348.000222.843585.288
1960.0200.98016,262.000225.963581.562
1970.0150.98516,257.000226.393581.394
1980.0100.99016,049.000230.010574.887
1990.0050.99515,892.000237.173519.866
20015,841.000240.652516.462
Table 3. Pareto optimal outcomes to problem L n - S u m - P r o d p KP stemming from S P 2 p .
Table 3. Pareto optimal outcomes to problem L n - S u m - P r o d p KP stemming from S P 2 p .
j λ 1 j λ 2 j S um P rod p ˜ L 2 - DEV
017,675.000215.930798.377
10.9950.00517,675.000215.930798.377
1770.1150.88517,502.000218.669792.286
1830.0850.91517,459.000219.873789.987
1860.0700.93017,425.000223.403783.121
1980.0100.99016,615.000228.355745.153
1990.0050.99515,885.000229.126575.893
20015,012.000239.317503.237
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Kaliszewski, I.; Miroforidis, J. Knapsack Balancing via Multiobjectivization. Appl. Sci. 2024, 14, 9236. https://doi.org/10.3390/app14209236

AMA Style

Kaliszewski I, Miroforidis J. Knapsack Balancing via Multiobjectivization. Applied Sciences. 2024; 14(20):9236. https://doi.org/10.3390/app14209236

Chicago/Turabian Style

Kaliszewski, Ignacy, and Janusz Miroforidis. 2024. "Knapsack Balancing via Multiobjectivization" Applied Sciences 14, no. 20: 9236. https://doi.org/10.3390/app14209236

APA Style

Kaliszewski, I., & Miroforidis, J. (2024). Knapsack Balancing via Multiobjectivization. Applied Sciences, 14(20), 9236. https://doi.org/10.3390/app14209236

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop