Next Article in Journal
Adaptive Fuzzy Neural Network Harmonic Control with a Super-Twisting Sliding Mode Approach
Next Article in Special Issue
Autonomous Digital Twin of Enterprise: Method and Toolset for Knowledge-Based Multi-Agent Adaptive Management of Tasks and Resources in Real Time
Previous Article in Journal
Varieties of Selective Influence: Toward a More Complete Taxonomy and Implications for Systems Identification
Previous Article in Special Issue
Special Type Routing Problems in Plane Graphs
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Complexity of Solutions Combination for the Three-Index Axial Assignment Problem

by
Lev G. Afraimovich
* and
Maxim D. Emelin
Institute of Information Technology, Mathematics and Mechanics, Lobachevsky State University of Nizhny Novgorod, Nizhny Novgorod 603022, Russia
*
Author to whom correspondence should be addressed.
Mathematics 2022, 10(7), 1062; https://doi.org/10.3390/math10071062
Submission received: 4 March 2022 / Revised: 21 March 2022 / Accepted: 23 March 2022 / Published: 25 March 2022
(This article belongs to the Special Issue Recent Advances of Disсrete Optimization and Scheduling)

Abstract

:
In this work we consider the NP-hard three-index axial assignment problem. We formulate and investigate a problem of combining feasible solutions. Such combination can be applied in a wide range of heuristic and approximate algorithms for solving the assignment problem, instead of the commonly used strategy of selecting the best solution among the found feasible solutions. We discuss approaches to a solution of the combination problem and prove that it becomes NP-hard already in the case of combining four solutions.

1. Introduction

Multi-index axial assignment problems arise when it comes to solving a multitude of applied problems in the logistics and planning area [1,2,3]. An overview of the results obtained through analysis of the subclasses of multi-index assignment problems is given in [1]. The class of multi-index axial assignment problems is known to be NP-hard even in the three-index case [4]. In [5] it was proved that no polynomial ε-approximate algorithms for solving a three-index axial assignment problem (here ε is an arbitrary constant) exist, otherwise P = NP.
There are known approximate and heuristic algorithms for solving the NP-hard axial assignment problem [2,6,7,8,9,10,11]. As a rule, such algorithms construct a series of feasible solutions to the problem. The general approach in the final step of the algorithms is choosing the best solution from the constructed feasible solutions. As an improvement of the final step of such algorithms we propose building an optimal combination of the found feasible solutions instead of commonly applied selection of the best solution. The optimal combination of feasible solutions is an optimization problem where the fragments of the found feasible solutions need to be optimally combined. Obviously, such an optimal combination is no worse than a standard selection of the best solution. But, as we will demonstrate later, solutions combination outperforms (based on computational experiments) selection of the best solution while having comparable computational complexity.
The solutions combination problem was first formulated in our earlier paper [12]. In this work a linear complexity algorithm for optimal combining of a pair of feasible solutions was constructed. Heuristic algorithms for combining of three and a larger number of solutions were proposed in [13]. These heuristics are based on successive combination of pairs of solutions. An efficient algorithm for optimal combining of three and larger number of solutions was an open problem.
In this work we have proved that the solution combination problem is already NP-hard in the case of combining four solutions. Which means that there is already no polynomial algorithm for optimal combination in the case of four solutions, otherwise P = N P . An efficient algorithm for optimal combining in the case of three solutions remains an open problem.
Further the article is organized as follows. In Section 2 we formulate the axial assignment problem and the corresponding solutions combination problem. Section 3 deals with the results of designing the algorithms for combining feasible solutions. Finally, in Section 4 the NP-hardness of combining four solutions is proved.

2. Solutions Combination Problem

Let I , J , K be the disjoint index sets, I J = ,   I K = ,   J K =   and   | I | = | J | = | K | = n ; c i j k ,   i I , j J , k K is the three-index cost matrix; and x i j k , i I , j J , k K is the three-index matrix of the variables. Then the three-index axial assignment problem is formulated as the following integer linear programming problem:
i I j J x i j k = 1 , k K ,
i I k K x i j k = 1 ,   j J ,
j J k K x i j k = 1 ,   i I ,
x i j k { 0 , 1 } , i I , j J , k K ,
i I j J k K c i j k x i j k min .
Next, let a set W I × J × K be given that defines a subset of the allowed assignments:
x i j k = 0 , ( i , j , k ) W .
Then we consider an optimization problem with objective (5) subject to constraints (1)–(4) and denote it by Z ( W ) for the given subset W . It is obvious that problem (1)–(5) corresponds to the problem Z ( I × J × K ) .
In the general case problem Z ( W ) is NP-hard [1]. Moreover, the problem of feasibility check of system (1)–(4), (6) for an arbitrary set W is NP-complete [1]. We will further consider subsets W such that correspond to the assignments set of some feasible solutions of the problem (1)–(5).
We introduce auxiliary notations. Let x be a feasible solution to the system of constraints (1)–(4). Then W ( x ) will be used to denote the following set of allowed assignments:
W ( x ) = { ( i , j , k ) | x i j k = 1 , i I , j J , k K } .
Let x 1 ,   x 2 , , x m be some arbitrary feasible solutions of the system (1)–(4). Denote W ( x 1 , x 2 ,   , x m ) = U t = 1 m W ( x t ) . Then the problem of optimal combining of m feasible solutions x 1 ,   x 2 , , x m takes the form Z ( W ( x 1 , x 2 ,   , x m ) ) .
A large number of known heuristic and approximate algorithms for solving the axial assignment problem yield, in the course of their operation, a certain set of feasible solutions (for convenience denoted by x 1 ,   x 2 , , x m ). Denote C ( x ) = i I j J k K c i j k x i j k . The general approach in the final step of these algorithms is choosing the best solution from the constructed feasible solutions, i.e., C = min t = 1 , m ¯ C ( x t ) . As an improvement on the final step of such algorithms, i.e., selection of the best solution, we propose building an optimal combination of the found feasible solutions through solving the problem Z ( W ( x 1 , x 2 ,   , x m ) ) . In other words, we propose building a solution by combining the components of the found feasible solutions rather than only choosing the best one.

3. Solution Combination Algorithms

Let us consider algorithms for solutions combination problem Z ( W ( x 1 , x 2 ,   , x m ) ) . In our earlier paper [12] we constructed a linear complexity algorithm for solutions combination problem for the case m = 2.
It was proved in [12] that Algorithm 1 finds solution of the problem Z ( W ( x 1 , x 2 ) ) and requires O(n) computational operations. Thus, in accordance with step 5 of Algorithm 1, the optimal value of the criterion for problem Z ( W ( x 1 , x 2 ) ) is defined as l = 1 q min ( ( i , j , k ) D l 1 c i j k , ( i , j , k ) D l 2 c i j k ) .
Algorithm 1. Ref. [12]. Solution of problem  Z ( W ( x 1 , x 2 ) )
  Step 1. Construct graph G = ( V , A ) , where V = { I J K } ,   A = { ( i , j ) , ( i , k ) , ( j , k ) | ( i , j , k ) W ( x 1 , x 2 ) } .
  Step 2. Find the connectivity components V l , l = 1 , q ¯ , of graph G and build subgraphs G l = ( V l , A l ) , l = 1 , q ¯ , induced by the corresponding components of connectivity.
  Step 3. Now, we build the following sets:
         D l 1 = { ( i , j , k ) | ( i , j , k ) W ( x 1 ) ,   ( i , j ) , ( i , k ) , ( j , k ) A l } ,
   D l 2 = { ( i , j , k ) | ( i , j , k ) W ( x 2 ) ,   ( i , j ) , ( i , k ) , ( j , k ) A l } .
  Step 4. The optimal value of criterion of the problem Z ( W ( x 1 , x 2 ) ) is defined as
   c * = l = 1 q min ( ( i , j , k ) D l 1 c i j k , ( i , j , k ) D l 2 c i j k ) .
  Step 5. The optimal solution to the problem Z ( W ( x 1 , x 2 ) ) is constructed as follows. Initially let x i j k 0 , i I , j J , k K . Further, for each l = 1 , q ¯ perform
         x i j k 1 ,   ( i , j , k ) D l p * , where p * = argmin p { 1 , 2 } ( i , j , k ) D l p c i j k .
We have demonstrated in [13] that an algorithm based on successive optimal combination of feasible solutions pairs does not ensure an optimal solution for the problem Z ( W ( x 1 , x 2 ,   , x m ) ) when m = 3 . However, such a successive combination technique can be used as a heuristic algorithm for the problem Z ( W ( x 1 , x 2 ,   , x m ) ) when m 3 . We provide the results of the computation experiments for a variety of successive combination strategies, which demonstrate the advantage of the proposed approach over the commonly used step of choosing the best feasible solution [13].
In [12,13] we presented comprehensive computational experiments for solutions combination algorithm for m = 2 and for solutions combination strategies for m 3. Below we will giving a brief description of these computational results. In [5] an approximate algorithm was constructed for the axial assignment problems satisfying triangle inequality. This approximate algorithm constructs three feasible solutions and chooses the best among them. A collection of test problems for n { 33 , 66 } with the cost matrices satisfying triangle inequality was proposed in [5]. For the collection of the problems presented in [5] the solution combination algorithm gives 0.148% improvement compared to the original step of choosing the best solution by the approximate algorithm; for more details please see [12]. For a set of cost matrices whose entries were generated with integer values uniformly distributed at the interval [ 0 , 300 ] and for n { 10 , 11 , , 19 } we randomly generated n 3 feasible solutions and applied the local optimization algorithm proposed in [6]. Based on computational results we demonstrated that applying of successive combination strategies to the locally optimized solution gives approximately 4–8% improvement compared to a standard approach of choosing the best solution; for more details please see [13].

4. Solutions Combination NP-Hardness

We will now show that the class of problems of the optimal combination of m feasible solutions is NP-hard even when m = 4 . The proof is based on polynomial reduction of the well-known NP-hard class of 3-CNF problems [4]. Here 3-CNF is the problem of determining if a Boolean formula is satisfiable, where the Boolean formula is in conjunctive normal form with three variables per conjunct.
Theorem 1.
The class of 3-CNF problems is polynomially reduced to the class of 3-CNF problems without repeating variables in each clause.
Proof of Theorem 1.
Let us consider an arbitrary 3-CNF and apply the following algorithm to each clause of 3-CNF:
  • If a clause does not contain any repeating variables, it remains unchanged.
  • If a repeating variable is included into a clause only with or only without negation then a clause has the form ( x x y ) or ( x x x ) , where x ,   y are the literals. A clause u ( x , y ) = ( x x y ) is replaced by u ( x , y , z ) = ( x y z ) ( x y z ¯ ) , where z is the new Boolean variable. It is obvious that u ( x , y ) = u ( x , y , z ) , z . A clause u ( x ) = ( x x x ) is replaced by u ( x , z , w ) = ( x z w ) ( x z w ¯ ) ( x z ¯ w ) ( x z ¯ w ¯ ) , where z , w are the new Boolean variables. It is obvious that u ( x ) = u ( x , z , w ) , z , w .
  • If a repeating variable is included into a clause simultaneously with and without negation, this clause has the form ( x x ¯ y ) , where x is the Boolean variable, y is the literal. Then ( x x ¯ y ) 1 , and the clause can be discarded from 3-CNF.
At this point we polynomially reduced the class of 3-CNF problems to the class of 3-CNF problems without repeating variables in each clause. The lemma is proved. □
Theorem 2.
The class of optimal combination of four solutions problems is NP-hard.
Proof of Theorem 2.
To prove the theorem, we will show that NP-hard class of 3-CNF problems [4] can be polynomially reduced to a class of optimal combination of four feasible solutions problems. □
Consider an arbitrary 3-CNF problem with N Boolean variables and M clauses. Let L = { 1 , , N } be the set of indices of Boolean variables of the 3-CNF. According to theorem 1, without loss of generality we assume that there are no repeating variables in each clause. For convenience, we introduce the following notations:
  • l 1 ( s ) , l 2 ( s ) , l 3 ( s ) are the indices of Boolean variables in the s -th clause;
  • L ( s ) = { l 1 ( s ) l 2 ( s ) l 3 ( s ) } is the set of indices of the Boolean variables included into the s-th clause;
  • L + ( s ) L ( s ) is the set of indices of the Boolean variables included without negation into the s-th clause;
  • L ( s ) L ( s ) is the set of indices of the Boolean variables included with negation into the s-th clause;
  • L ¯ ( s ) = { 1 , , N } \ L ( s ) is the set of indices for the Boolean variables that are not included into the s -th clause,
s = 1 , M ¯ .
Then we construct disjoint sets of indices I , J , K as follows; see Figure 1 for visualization of these sets:
  • I = { a l s 1 | l = 1 , N ¯ , s = 1 , M ¯ } { d s 1 , q s 1 , w s 1 | s = 1 , M ¯ } { e l s 1 | l L ¯ ( s ) , s = 1 , M ¯ } ,
  • J = { a l s 2 | l = 1 , N ¯ , s = 1 , M ¯ } { d s 2 , q s 2 , w s 2 | s = 1 , M ¯ } { e l s 2 | l L ¯ ( s ) , s = 1 , M ¯ } ,
  • K = { b l s 1 , b l s 2 | l = 1 , N ¯ , s = 1 , M ¯ } .
According to above construction, | I | = | J | = N M + 3 M + ( N 3 ) M = 2 N M , | K | = 2 N M . Hence, | I | = | J | = | K | = 2 N M .
Next, build a set R I × J × K to be used for defining a multi-index cost matrix of the axial assignment problem in the following form:
  • R 1 = { ( a l s 1 , a l s 2 , b l s 1 ) , ( a l ( s   mod   M + 1 ) 1 , a l s   2 , b l s 2 ) | l = 1 , N ¯ , s = 1 , M ¯ } ;
  • R 2 = { ( d s 1 , d s 2 , b l s 1 ) | l L ( s ) , s = 1 , M ¯ } { ( d s 1 , d s 2 , b l s 2 ) | l L + ( s ) , s = 1 , M ¯ } ;
  • R 3 = { ( q s 1 , q s 2 , b l 1 ( s ) s 1 ) , ( q s 1 , q s 2 , b l 1 ( s ) s 2 ) , ( q s 1 , q s 2 , b l 2 ( s ) s 1 ) , ( q s 1 , q s 2 , b l 2 ( s ) s 2 ) | s = 1 , M ¯ } ;
  • R 4 = { ( w s 1 , w s 2 , b l 2 ( s ) s 1 ) , ( w s 1 , w s 2 , b l 2 ( s ) s 2 ) , ( w s 1 , w s 2 , b l 3 ( s ) s 1 ) , ( w s 1 , w s 2 , b l 3 ( s ) s 2 ) | s = 1 , M ¯ } ;
  • R 5 = { ( e l s 1 , e l s 2 , b l s 1 ) , ( e l s 1 , e l s 2 , b l s 2 ) | l L ¯ ( s ) , s = 1 , M ¯ } ;
  • R = R 1 R 2 R 3 R 4 R 5 .
Now we can define the three-index cost matrix as
c i j k = { 0 ,   ( i , j , k ) R 1 ,   otherwise ,   i I , j J , k K .
The constructed sets I , J , K and three-index cost matrix c i j k define the three-index axial assignment problem (1)–(5).
Further we build four subsets P 1 , P 2 , P 3 , P 4   I × J × K , that will determine four feasible solutions to problem (1)–(5); see Figure 2, Figure 3, Figure 4 and Figure 5 for visualization of the sets P 1 P 4 .:
  • P 1 = { ( a l s 1 , a l s 2 , b l s 1 ) | l = 1 , N ¯ , s = 1 , M ¯ } { ( q s 1 , q s   2 , b l 2 ( s ) s 2 ) , ( w s 1 , w s   2 , b l 3 ( s ) s 2 ) | s = 1 , M ¯ } { ( d s 1 , d s   2 , b l 1 ( s ) s 2 ) | s = 1 , M ¯ } { ( e l s 1 , e l s 2 , b l s 2 ) | l L ¯ ( s ) , s = 1 , M ¯ } ;
  • P 2 = { ( a l ( s   mod   M + 1 ) 1 , a l s 2 , b l s 2 ) | l = 1 , N ¯ , s = 1 , M ¯ } { ( q s 1 , q s   2 , b l 2 ( s ) s 1 ) , ( w s 1 , w s   2 , b l 3 ( s ) s 1 ) | s = 1 , M ¯ } { ( d s 1 , d s   2 , b l 1 ( s ) s 1 ) | s = 1 , M ¯ } { ( e l s 1 , e l s 2 , b l s 1 ) | l L ¯ ( s ) , s = 1 , M ¯ } ;
  • P 3 = { ( q s 1 , q s 2 , b l 1 ( s ) s 2 ) , ( w s 1 , w s 2 , b l 2 ( s ) s 2 ) , ( a l 1 ( s ) s 1 , a l 1 ( s ) s 2 , b l 1 ( s ) s 1 ) | s = 1 , M ¯ } { ( d s 1 , d s   2 , b l 2 ( s ) s 1 ) , ( a l 2 ( s ) s 1 , a l 2 ( s ) s 2 , b l 3 ( s ) s 1 ) , ( a l 3 ( s ) s 1 , a l 3 ( s ) s 2 , b l 3 ( s ) s 2 ) | l 2 ( s ) L ( s ) , s = 1 , M ¯ } { ( d s 1 , d s   2 , b l 3 ( s ) s 1 ) , ( a l 3 ( s ) s 1 , a l 3 ( s ) s 2 , b l 3 ( s ) s 2 ) | l 2 ( s ) L + ( s ) , l 3 ( s ) L ( s ) , s = 1 , M ¯ } { ( d s 1 , d s   2 , b l 3 ( s ) s 2 ) , ( a l 3 ( s ) s 1 , a l 3 ( s ) s 2 , b l 3 ( s ) s 1 ) | l 2 ( s ) L + ( s ) , l 3 ( s ) L + ( s ) , s = 1 , M ¯ } { ( a l 2 ( s ) s 1 , a l 2 ( s ) s 2 , b l 2 ( s ) s 1 ) | l 2 ( s ) L + ( s ) , s = 1 , M ¯ } { ( a l s 1 , a l s 2 , b l s 1 ) , ( e l s 1 , e l s 2 , b l s 2 ) | l L ¯ ( s ) , s = 1 , M ¯ } ;
  • P 4 = { ( q s 1 , q s 2 , b l 1 ( s ) s 1 ) , ( w s 1 , w s 2 , b l 2 ( s ) s 1 ) , ( a l 1 ( s ) s 1 , a l 1 ( s ) s 2 , b l 1 ( s ) s 2 ) | s = 1 , M ¯ } { ( d s 1 , d s   2 , b l 2 ( s ) s 2 ) , ( a l 3 ( s ) s 1 , a l 3 ( s ) s 2 , b l 3 ( s ) s 1 ) , ( a l 2 ( s ) s 1 , a l 2 ( s ) s 2 , b l 3 ( s ) s 2 ) | l 2 ( s ) L + ( s ) , s = 1 , M ¯ }
    { ( d s 1 , d s   2 , b l 3 ( s ) s 1 ) , ( a l 3 ( s ) s 1 , a l 3 ( s ) s 2 , b l 3 ( s ) s 2 ) | l 2 ( s ) L ( s ) , l 3 ( s ) L ( s ) , s = 1 , M ¯ } { ( d s 1 , d s   2 , b l 3 ( s ) s 2 ) , ( a l 3 ( s ) s 1 , a l 3 ( s ) s 2 , b l 3 ( s ) s 1 ) | l 2 ( s ) L ( s ) , l 3 ( s ) L + ( s ) , s = 1 , M ¯ } { ( a l 2 ( s ) s 1 , a l 2 ( s ) s 2 , b l 2 ( s ) s 2 ) | l 2 ( s ) L ( s ) , s = 1 , M ¯ } { ( a l s 1 , a l s 2 , b l s 2 ) , ( e l s 1 , e l s 2 , b l s 1 ) | l L ¯ ( s ) , s = 1 , M ¯ } .
The corresponding four feasible solutions x 1 ,   x 2 ,   x 3 ,   x 4 will be defined as follows:
x i j k t = { 1 ,   if   ( i , j , k ) P t 0 ,   otherwise ,   i I , j J , k K ,  
where t { 1 , 2 , 3 , 4 } .
It is obvious that the criterion of the constructed solutions combination problem Z ( W ( x 1 , x 2 , x 3 , x 4 ) ) is nonnegative. Now we show that the optimal criterion value of Z ( W ( x 1 , x 2 , x 3 , x 4 ) ) is 0 if and only if the corresponding 3-CNF is satisfiable.
1. Let x * be the optimal solution to problem Z ( W ( x 1 , x 2 , x 3 , x 4 ) ) and C ( x * ) = 0 . We build a set W ( x * ) = { ( i , j , k ) | x i j k * = 1 , i I , j J , k K } . Since x * satisfies the system of constraints (1)–(4), we get | W ( x * ) | = 2 N M .
Now it is easily seen that for each l { 1 , 2 , , N } one of the following two conditions holds:
( a l s 1 , a l s 2 , b l s 1 ) P ( x * ) ,   s = 1 , M ¯ ,
or
( a l ( s   m o d   M + 1 ) 1 , a l s 2 , b l s 2 ) P ( x * ) ,   s = 1 , M ¯ .
Indeed, let us assume that for some l { 1 , 2 , , N } the condition ( a l s 1 , a l s 2 , b l s 1 ) W ( x * ) holds, but ( a l ( s   m o d   M + 1 ) 1 , a l ( s   m o d   M + 1 ) 2 , b l ( s   m o d   M + 1 ) 1 )   W ( x * ) . By construction,
P { ( a ( l   m o d   M + 1 ) s 1 , j , k ) | j J , k K } = { ( a l ( s   m o d   M + 1 ) 1 , a l ( s   m o d   M + 1 ) 2 , b l ( s   m o d   M + 1 ) 1 ) , ( a l ( s   m o d   M + 1 ) 1 , a l s 2 , b l s 2 ) }
Since ( a l s 1 , a l s 2 , b l s 1 ) W ( x * ) and x * satisfies the system of constraints (1)–(4), then ( a l ( s   m o d   M + 1 ) 1 , a l s 2 , b l s 2 )   W ( x * ) . Given W ( x * ) P , we finally obtain
W ( x * ) { ( a l ( s   m o d   M + 1 ) 1 , j , k ) | j J , k K } = .
Then, | W ( x * ) | < 2 N M , which leads to contradiction and the above assumption is wrong. Hence, if ( a l s 1 , a l s 2 , b l s 1 ) P ( x * ) , we get ( a l ( s   m o d   M + 1 ) 1 , a l ( s   m o d   M + 1 ) 2 , b l ( s   m o d   M + 1 ) 1 ) W ( x * ) . From here we conclude that, if ( a l s 1 , a l s 2 , b l s 1 ) W ( x * ) for some l , then condition (7) holds for l. If ( a l s 1 , a l s 2 , b l s 1 ) W ( x * ) for some l, then ( a l ( s   m o d   M + 1 ) 1 , a l s 2 , b l s 2 )   W ( x * ) and, similarly, we can prove that condition (8) holds for l.
Now we define vector X of the Boolean variables for the initial 3-CNF:
X l = { t r u e ,   if   condition   ( 7 )   holds   for   l   f a l s e ,   if   condition   ( 8 )   holds   for   l   ,   l = 1 , N ¯ .
By construction, each s { 1 , , M } has a corresponding
l L ( s )   that   ( d s 1 , d s 2 , b l s 1 )   W ( x * ) ,
or
l L + ( s )   that   ( d s 1 , d s 2 , b l s 2 )   W ( x * ) .
Hence for each s { 1 , , M } there exists
l L + ( s )   that   X l = t r u e ,
or
l L ( s )   that   X l = f a l s e .
From this it follows that each clause takes the true value on Boolean vector X. Hence 3-CNF takes the true value on Boolean vector X and is satisfiable.
2. Let 3-CNF be satisfiable and X be the Boolean variables vector on which 3-CNF takes the true value. Then we build a set of allowed assignments, P ( X ) , that is to define the optimal solution to the combination problem Z ( W ( x 1 , x 2 , x 3 , x 4 ) ) . Set P ( X ) will be constructed by the following Algorithm 2:
Algorithm 2. Constructing P ( X )
Step 1. Initialize P ( X ) : = .
Step 2. For each l = 1 , N ¯ :
I f   X l = t r u e , then
       P ( X ) : = P ( X ) { ( a l s 1 , a l s 2 , b l s 1 ) | s = 1 , M ¯ } { ( e l s 1 , e l s 2 , b l s 2 ) | l L ¯ ( s ) , s = 1 , M ¯ } ;
else
   P ( X ) : = P ( X ) { ( a l ( s   m o d   M + 1 ) 1 , a l s 2 , b l s 2 ) | s = 1 , M ¯ } { ( e l s 1 , e l s 2 , b l s 1 ) | l L ¯ ( s ) , s = 1 , M ¯ } .
Step 3. For each s = 1 , M ¯ :
If X l 1 ( s ) = t r u e , l 1 ( s ) L + ( s )   or   X l 1 ( s ) = f a l s e , l 1 ( s ) L ( s ) ,   then  
                     P ( X ) P ( X )
        { ( d s 1 , d s 2 , b l 1 ( s ) s 2 ) | X l 1 ( s ) = t r u e } { ( d s 1 , d s 2 , b l 1 ( s ) s 1 ) | X l 1 ( s ) = f a l s e }
        { ( q s 1 , q s 2 , b l 2 ( s ) s 2 ) | X l 2 ( s ) = t r u e } { ( q s 1 , q s 2 , b l 2 ( s ) s 1 ) | X l 2 ( s ) = f a l s e }
        { ( w s 1 , w s 2 , b l 3 ( s ) s 2 ) | X l 3 ( s ) = t r u e } { ( w s 1 , w s 2 , b l 3 ( s ) s 1 ) | X l 3 ( s ) = f a l s e } ;
else if X l 2 ( s ) = t r u e , l 2 ( s ) L + ( s )   or   X l 2 ( s ) = f a l s e , l 2 ( s ) L ( s ) ,   then  
                     P ( X ) P ( X )
        { ( d s 1 , d s 2 , b l 2 ( s ) s 2 ) | X l 2 ( s ) = t r u e } { ( d s 1 , d s 2 , b l 2 ( s ) s 1 ) | X l 2 ( s ) = f a l s e }
        { ( q s 1 , q s 2 , b l 1 ( s ) s 2 ) | X l 1 ( s ) = t r u e } { ( q s 1 , q s 2 , b l 1 ( s ) s 1 ) | X l 1 ( s ) = f a l s e }
        { ( w s 1 , w s 2 , b l 3 ( s ) s 2 ) | X l 3 ( s ) = t r u e } { ( w s 1 , w s 2 , b l 3 ( s ) s 1 ) | X l 3 ( s ) = f a l s e } ;
else if X l 3 ( s ) = t r u e , l 3 ( s ) L + ( s )   or   X l 3 ( s ) = f a l s e , l 3 ( s ) L ( s ) ,   then  
                     P ( X ) P ( X )
        { ( d s 1 , d s 2 , b l 3 ( s ) s 2 ) | X l 3 ( s ) = t r u e } { ( d s 1 , d s 2 , b l 3 ( s ) s 1 ) | X l 3 ( s ) = f a l s e }
        { ( q s 1 , q s 2 , b l 1 ( s ) s 2 ) | X l 1 ( s ) = t r u e } { ( q s 1 , q s 2 , b l 1 ( s ) s 1 ) | X l 1 ( s ) = f a l s e }
        { ( w s 1 , w s 2 , b l 2 ( s ) s 2 ) | X l 2 ( s ) = t r u e } { ( w s 1 , w s 2 , b l 2 ( s ) s 1 ) | X l 2 ( s ) = f a l s e } .
Next, we define a multi-index matrix of variables x * = x i j k * :
x i j k * = { 1 ,   if   ( i , j , k ) P ( X ) 0 ,   otherwise ,   i I , j J , k K .  
In step 2 there are N K + ( N 3 ) K elements included into the set P ( X ) . Since the 3-CNF takes true value on X, in step 3 there are 3K elements included into P ( X ) . Hence, | P ( X ) | = 2 N K . For any pair p 1 , p 2 P ( x ) , that p 1 p 2 , the following condition holds
p 1 = ( i 1 , j 1 , k 1 ) , p 2 = ( i 2 , j 2 , k 2 ) ,   i 1 i 2 ,   j 1 j 2 ,   k 1 k 2 .
Therefore, x * satisfies the system of constraints (1)–(4).
By construction, P ( X ) P , since in step 2 only elements from the sets P 1 ,   P 2 may be included into P ( X ) , then in step 3 only elements from P 1 , P 2 , P 3 , P 4 may be included into P ( X ) . Hence ,   x * is a feasible solution of the combination problem Z ( W ( x 1 , x 2 , x 3 , x 4 ) ) . Further, by construction, P ( X ) R , since in step 2 only elements from R 1 ,   R 5 may be included into set P ( X ) , then in step 3 only elements from R 2 , R 3 , R 4 may be included into P ( X ) . From this it follows that C ( x * ) = 0 . And hence, x * is the optimal solution to problem Z ( W ( x 1 , x 2 , x 3 , x 4 ) ) , and the optimal criterion value for this problem is 0.
Thus, the optimal criterion value of the constructed problem Z ( W ( x 1 , x 2 , x 3 , x 4 ) ) is equal to 0 if and only if the 3-CNF is satisfiable. The above procedure of constructing the problem Z ( W ( x 1 , x 2 , x 3 , x 4 ) ) requires a polynomial time in the size of the initial 3-CNF. Therefore, the class of problems of optimal combination of four feasible solutions is NP-hard. The theorem is proved.

5. Conclusions

Approximate and heuristic algorithms for solving an NP-hard axial assignment problem are well known in literature. Usually, such algorithms construct a series of feasible solutions to the problem and, in the final step, select the best solution among those constructed. As an improvement of this commonly used approach of selecting the best solution in the final step of the algorithm we propose solving the problem of optimal combination of constructed m solutions. The case m = 2 (i.e., optimal combination of a pair of feasible solutions) can be handled using a linear complexity algorithm. For m 3 it is impossible to find an optimal solution to the combining problem via successive combination of pairs. Nevertheless, in practice the strategy of sequential combination of pairs proves to produce better results than are obtainable with the conventional technique of selecting the best solution. In this paper we demonstrated that the solutions combination problem turns out to already be NP-hard when m = 4 . The combination complexity in the case m = 3 remains an open problem.

Author Contributions

Conceptualization and methodology L.G.A., formal analysis and investigation M.D.E. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Acknowledgments

The authors would like to thank anonymous reviewers for their suggestions and comments.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Spieksma, F.C.R. Multi Index Assignment Problems. Complexity, Approximation, Applications. In Nonlinear Assignment Problems: Algorithms and Applications; Pardalos, P.M., Pitsoulis, L.S., Eds.; Kluwer Acad. Publishers: Dordrecht, The Netherlands, 2000; pp. 1–11. [Google Scholar]
  2. Afraimovich, L.G. A Heuristic Method for Solving Integer-Valued Decompositional Multiindex Problems. Autom. Remote Control 2014, 75, 1357–1368. [Google Scholar] [CrossRef]
  3. Afraimovich, L.G.; Prilutskii, M.K. Multiindex Optimal Production Planning Problems. Autom. Remote Control 2010, 71, 2145–2151. [Google Scholar] [CrossRef]
  4. Garey, M.R.; Johnson, D.S. Computers and Intractability: A Guide to the Theory of NP-Completeness; Freeman: San Francisco, CA, USA, 1979. [Google Scholar]
  5. Crama, Y.; Spieksma, F.C.R. Approximation Algorithms for Three-Dimensional Assignment Problems with Triangle Inequalities. Eur. J. Oper. Res. 1992, 60, 273–279. [Google Scholar] [CrossRef]
  6. Huang, G.; Lim, A. A Hybrid Genetic Algorithm for the Three-Index Assignment Problem. Eur. J. Oper. Res. 2006, 172, 249–257. [Google Scholar] [CrossRef]
  7. Karapetyan, D.; Gutin, D. A New Approach to Population Sizing for Memetic Algorithms: A Case Study for the Multidimensional Assignment Problem. Evol. Comput. 2011, 19, 345–371. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  8. Medvedev, S.N.; Medvedeva, O.A. An Adaptive Algorithm for Solving the Axial Three-Index Assignment Problem. Autom. Remote Control 2019, 80, 718–732. [Google Scholar] [CrossRef]
  9. Gabrovšek, B.; Novak, T.; Povh, J.; Rupnik, P.D.; Žerovnik, J. Multiple Hungarian Method for k-Assignment Problem. Mathematics 2020, 8, 2050. [Google Scholar] [CrossRef]
  10. Gimadi, E.K.; Korkishko, N.M. An Algorithm For Solving the Three-Index Axial Assignment Problem on One-Cycle Permutations. Diskretnyi Anal. Issled. Oper. Ser. 1 2003, 10, 56–65. [Google Scholar]
  11. Balas, E.; Saltzman, M.J. An Algorithm for the Three-Index Assignment Problem. Oper. Res. 1991, 39, 150–161. [Google Scholar] [CrossRef]
  12. Afraimovich, L.G.; Emelin, M.D. Combining solutions of the axial assignment problem. Autom. Remote Control 2021, 82, 1418–1425. [Google Scholar] [CrossRef]
  13. Afraimovich, L.G.; Emelin, M.D. Heuristic Strategies for Combining Solutions of the Three-Index Axial Assignment Problem. Autom. Remote Control 2021, 82, 1635–1640. [Google Scholar] [CrossRef]
Figure 1. Scheme demonstrating subsets of indices I , J , K corresponding to a fixed s. A set of indices as a subscript of a node on the scheme (e.g., a L s 1 ) corresponds to a set of nodes.
Figure 1. Scheme demonstrating subsets of indices I , J , K corresponding to a fixed s. A set of indices as a subscript of a node on the scheme (e.g., a L s 1 ) corresponds to a set of nodes.
Mathematics 10 01062 g001
Figure 2. Scheme demonstrating the subset of triples of the set P 1 , corresponding to a fixed s .
Figure 2. Scheme demonstrating the subset of triples of the set P 1 , corresponding to a fixed s .
Mathematics 10 01062 g002
Figure 3. Scheme demonstrating the subset of triples of the set P 2 , corresponding to a fixed s .
Figure 3. Scheme demonstrating the subset of triples of the set P 2 , corresponding to a fixed s .
Mathematics 10 01062 g003
Figure 4. Scheme demonstrating the subset of triples of the set P 3 , corresponding to a fixed s such that l 2 ( s ) L ( s ) .
Figure 4. Scheme demonstrating the subset of triples of the set P 3 , corresponding to a fixed s such that l 2 ( s ) L ( s ) .
Mathematics 10 01062 g004
Figure 5. Scheme demonstrating the subset of triples of the sets P 4 , corresponding to a fixed s such that l 2 ( s ) L ( s ) , l 3 ( s ) L ( s ) .
Figure 5. Scheme demonstrating the subset of triples of the sets P 4 , corresponding to a fixed s such that l 2 ( s ) L ( s ) , l 3 ( s ) L ( s ) .
Mathematics 10 01062 g005
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Afraimovich, L.G.; Emelin, M.D. Complexity of Solutions Combination for the Three-Index Axial Assignment Problem. Mathematics 2022, 10, 1062. https://doi.org/10.3390/math10071062

AMA Style

Afraimovich LG, Emelin MD. Complexity of Solutions Combination for the Three-Index Axial Assignment Problem. Mathematics. 2022; 10(7):1062. https://doi.org/10.3390/math10071062

Chicago/Turabian Style

Afraimovich, Lev G., and Maxim D. Emelin. 2022. "Complexity of Solutions Combination for the Three-Index Axial Assignment Problem" Mathematics 10, no. 7: 1062. https://doi.org/10.3390/math10071062

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