other words, these are the “golden numbers” of the
algorithm.
1
0. 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.
pp ,Uniform
p
new
~
j
I
old
~
j
I
Figure 4: Random perturbation.
The algorithm maintains the dynamically
changing
bestbest
P X,
set.
3 BLP MODEL
At the termination of the heuristic algorithm,
solution
bestbest
P X,
may be improved at
reasonable additional CPU time by solving a set of
randomly generated small BLP problems.
The idea is a natural extension of the well-known
"last added items" heuristics (for example: (Loulou,
Michaelides, 1979); (Volgenant and Zwiers, 2007),
and (Fleszar and Hindi, 2009)), which exploits the
fact, that using a state-of-the-art solver, a small BLP
problem can be solved very quickly.
The essence of the new approach is very simple:
we select randomly
items from the knapsack and
items from the complementary set. After that we
solve the knapsack problem to optimality for the
selected subset, and update the best solution if the
new arrangement is better than the old one. We
repeat these steps
C times.
Naturally, the time requirement and the
efficiency of the improvement is a function of
C
and
. The larger the selected subset size, the
higher the chance of success but higher the
computational cost according to the NP-hard nature
of the BLP subproblems.
4 COMPUTATIONAL RESULTS
The algorithm of the proposed model has been
programmed in Compaq Visual Fortran
6.5. To
solve the BLP problems the callable version of
Cplex 12.2 was used. Naturally, this solver can be
replaced by any other commercial (academic) solver.
The computational results were obtained by running
the algorithm on a 1.8 GHz Pentium IV IBM PC
with 256 MB of memory under Microsoft Windows
XP
operation system.
Standard “large-sized” test data available from
OR-Library were used to test the algorithm. These
data contain randomly generated 0-1 MKPs with
different numbers of constraints, variables, and
tightness ratios:
750 50 250
500 250 100
30 10 5
.,.,.α
,,N
,,M
(9)
There are 10 problem instances for each
combination giving 270 test cases in total. The
algorithm was run once for each problem instance.
Since the optimal solution values for most of these
problems are not known, the quality of a solution
was measured by the percentage gap of the solution
value with respect to the optimal value of the LP-
relaxation of the MKP.
According to our preliminary investigations, we
have run our algorithm with the following global
parameter values, where the bold numbers mean
MKP specific “golden numbers”:
S
{10, 100, 1000}
G
10
1
0.1
G
0.01
25
C
10
We compared our hybrid heuristic HH with the
following heuristics of the literature (see: Table 1-2):
AGNES (Freville and Plateau , 1994);
ADP (Bertsimas and Demir, 2002);
SMA (Hanafi et al., 1996);
HDP (Boyer et al., 2008);
HDP+LPC (Boyer et al., 2008)
ILPH (Hanafi and Wilbaut, 2011)
Numerical results show that HH is a fast algorithm
that is competitive with the currently best ILPH,
HDP and HDP+LPC algorithms for MKP for
instance sets MKNAPCB 1-9 (OR-Library).
In the case of ILPH the authors investigated only
the 90 largest (hardest) instances with
500N We
have to mention, that in Table 1 we compared the
ILPH results with the relaxed solutions. In (Hanafi
and Wilbaut, 2011) the authors compared the ILPH
results with the currently best solutions of the
literature, which is a dynamically changing measure
THE MULTIDIMENSIONAL 0-1 KNAPSACK PROBLEM - A New Heuristic Algorithm Combined with 0-1 Linear
Programming
205