Impact of deadline intervals on behavior of solutions to the random Sequencing Jobs with Deadlines problem

Impact of deadline intervals on behavior of solutions to the random Sequencing Jobs with Deadlines problem

European Journal of Operational Research 262 (2017) 40–45 Contents lists available at ScienceDirect European Journal of Operational Research journal...

387KB Sizes 0 Downloads 33 Views

European Journal of Operational Research 262 (2017) 40–45

Contents lists available at ScienceDirect

European Journal of Operational Research journal homepage: www.elsevier.com/locate/ejor

Discrete Optimization

Impact of deadline intervals on behavior of solutions to the random Sequencing Jobs with Deadlines problem Krzysztof Szkatuła a,b,∗ a b

Systems Research Institute, Polish Academy of Sciences, ul. Newelska 6, Warszawa 01-447, Poland Siedlce University of Natural Sciences and Humanities, ul. Konarskiego 2, Siedlce 08-110, Poland

a r t i c l e

i n f o

Article history: Received 16 April 2015 Accepted 18 March 2017 Available online 24 March 2017 Keywords: Scheduling Combinatorial optimization Probabilistic analysis Approximate algorithm Profit

a b s t r a c t The paper analyzes the influence, exerted by the mutual relations of deadline intervals on behavior of the optimal solution values for the random Sequencing Jobs with Deadlines (SJD) problems. An asymptotically sub-optimal algorithm is proposed. It is assumed that the problem coefficients are realizations of independent uniformly distributed random variables and deadlines are deterministic. The results, presented in the paper, significantly extend knowledge on behavior of the optimal solutions to the SJD problem in the asymptotical case.

1. Introduction The Sequencing Jobs with Deadlines problem (SJD) consists in maximizing the weighted number of jobs processed before their deadlines. Deadlines may be considered as special cases of due windows (due intervals), see (Janiak, Janiak, Krysiak, & Kwiatkowski, 2015). Each job j ( j = 1, . . . , n) is to be processed on a single machine. It requires a processing time tj and has a deadline dj (n). Deadlines are assumed to be the functions of n in order to allow for the asymptotical analysis of SJD, when n → ∞. If the job is completed before its deadline, a profit pj is earned. The objective is to maximize the total profit, which could be considered as equivalent to minimizing the total cost or minimizing the weighted sum of late jobs. From the point of view of the deterministic scheduling problems theory, the SJD problem belongs to the class of the single machine scheduling (SMS) problems. More precisely, it is considered as a scheduling problem with optimization criteria involving due dates, classified, according to Graham notation, as 1| | w j U j , ˙ see (Błazewicz, Ecker, Pesch, Schmidt, and Weglarz, 1996, p. 106). There are many research papers that deal with SMS problems, both due to their own scientific value and as parts of more generalized and complex problems. The SJD problem often occurs as a sub-problem in various sequencing and scheduling problems. In Baptiste, Croce, Grosso, and T’kindt (2010) job sequencing ∗ Corresponding author at: Systems Research Institute, Polish Academy of Sciences, ul. Newelska 6, 01-447 Warszawa, Poland. E-mail address: [email protected]

http://dx.doi.org/10.1016/j.ejor.2017.03.047 0377-2217/© 2017 Elsevier B.V. All rights reserved.

© 2017 Elsevier B.V. All rights reserved.

problems with due dates and deadlines were considered. Paper by Catanzaro, Gouveiac, and Labbé (2015) addressed the job sequencing problems with tool switching. In Baptiste and Le-Pape (2005) scheduling problems with setup constraints were analyzed. Detienne (2014) considered scheduling problems with machine availability constraints. These ones are only few, out of many, problems where the SJD problem is included as the sub-problem. In many cases, the SJD problem may be used as relaxation of the more complex problems. It is assumed, with insignificant loss of generality, that jobs are indexed according to

d1 ( n ) ≤ d2 ( n ) ≤ · · · ≤ dn ( n ).

(1)

Then, the SJD problem can be formulated as a binary (0–1) programing problem (cf. Lawler & Moore, 1969):

zOPT (n ) = max

n 

p jx j

j=1

s.t.

i 

t j x j ≤ di ( n ),

i = 1, . . . , n

j=1

where x j = 0 or 1,

j = 1, . . . , n

(2)

where x j = 1 only if job j is completed before its deadline. Jobs on time should be processed in the order conform to (1), while completion of the late jobs is of no importance, since no profit is earned. If all p j = 1, j = 1, . . . , n, then the optimization goal is to maximize the number of jobs performed within the deadlines or, equivalently, to minimize the number of tardy jobs. Without loss

K. Szkatuła / European Journal of Operational Research 262 (2017) 40–45

of generality we also assume that

0 < t j ≤ d j (n ) and p j > 0, j = 1, . . . , n. SJD is well known to be an NP-hard problem, see (Garey & Johnson, 1979), but it can be solved in a pseudopolynomial time by a dynamical programing method of Sahni (1976). In the literature, many algorithms have been proposed to solve the sequencing or scheduling jobs on a single machine. Many of the proposed solution techniques are based on (mixed) integer linear programing problem formulations, cf. Baptiste et al. (2010), Catanzaro et al. (2015) and Detienne (2014). Another general technique which could be used is Branch and Bound method, see Baptiste and Le-Pape (2005). There were also attempts to use genetic algorithms, see Sevaux and Dauzère-Pérès (2003) or the neural network approach, cf. El-Bouri, Balakrishnan, and Popplewell (20 0 0). In the paper by Levner and Elalouf (2014), an improved version of the polynomial-time approximation algorithm to solve the SJD problem was presented. The above list of references has illustrative purpose and it is far from being exhaustive. In the literature, a certain simplified version of the SJD problem was considered. In this case all jobs have identical processing times, i.e. ti = c, c > 0, i = 1, . . . , n where c is some constant. For this version of the SJD problem many efficient greedy type algorithms were proposed, cf. Puntambekar (2009). Moreover, greedy type algorithms are often used in this context in the teaching process at the universities, cf. Kocur (2010). It can be easily observed that SJD is a special case of the well known binary (0–1) multi-constraint knapsack problem, cf. Kellerer, Pferschy, and Pisinger (2004), according to the following formulation:

zOPT (n ) = max

n 

ci xi s.t.

i=1

n 

a ji xi ≤ b j (n ),

xi ∈ {0, 1},

also useful for constructing and testing approximate algorithms for solving SJD problems. The following notation is used throughout the paper: Vn ≈ Yn , n → ∞ denotes: •



Yn · (1 − on (1 )) ≤ Vn ≤ Yn · (1 + on (1 )) if Vn and Yn are sequences of numbers; limn→∞ P {Yn · (1 − on (1 )) ≤ Vn ≤ Yn · (1 + on (1 ))} = 1 if Vn is a sequence of random variables and Yn is a sequence of numbers or random variables, where on (1) is function fulfilling: on (1) ≥ 0 and limn→∞ on (1 ) = 0.

In Section 2 some useful duality estimations of (2) are presented. These estimations are exploited in Section 3, which presents probabilistic analysis of the SJD problem. Both Sections 2 and 3 are partially based on the paper by Szkatuła (1998). For further details the reader is kindly referred to this paper. Section 4 contains the main results of the paper, related to the deadline intervals and the approximate algorithm. Section 5 discusses obtained results. 2. Lagrange function and dual estimations Let us consider the Lagrange function of (2):

Fn (x, ) =

p jx j +

=

n  i=1

j=1 n 

λi di (n ) +

  i λi · di (n ) − j=1 t j x j

n  

i=1

(3)

pi xi s.t.

i=1

i = 1, . . . , n.

n 



pj − j · tj · xj

j=1

where x = {x1 , . . . , xn },  = {λ1 , . . . λn },  j = , λ j ≥ 0 , j = 1 , . . . , n

ϕn () = max n Fn (x, ) = x∈{0,1}

where, in (3), c j = p j , ai j = t j , 1 ≤ i ≤ j, ai j = 0, j < i ≤ n, b j (n ) = d j (n ), j = 1, . . . , n. When all constraints, but last, in (3) are dropped, then SJD problem is reduced to the classical (single constraint) knapsack problem: n 

n 

i=1

i, j = 1, . . . , n

zOPT (n ) = max

41

=

n 

n 

λi di (n ) +

i=1

p j ( j ) +

n 

n  

i= j

λi . Let for every



p j −  j · t j · x j ( j )

j=1



λi · di (n ) −

i=1

j=1

n

i j=1

t j ( j )



where

ti xi ≤ dn ( n ), xi ∈ {0, 1},

if p j −  j t j > 0 then x j ( j ) = 1; p j ( j ) = p j ; t j ( j ) = t j ;

i=1

(4)

It is well known that multi-constraint knapsack problem is NP hard in the strong sense, while both SJD and single-constraint knapsack problems are NP hard but not in the strong sense, cf. Garey and Johnson (1979). There are various approaches to deal with uncertainty, e.g. defined as randomness of the problem data (coefficients), in the case of job sequencing or scheduling problems, cf. Xia, Chen, and Yue (2008). In the paper by Szkatuła (1998) asymptotic growth (as n → ∞) of the value of zOPT (n) for the class of random SJD problems was analyzed. The goal of the present paper is to investigate the influence of the intervals of deadlines on asymptotical behavior (as n → ∞) of the optimal solution values zOPT (n) in the case of random version of the SJD problem, where intervals of deadlines are defined by behavior of d1 (n ), d2 (n ) − d1 (n ), . . . , dn (n ) − dn−1 (n ), more precisely by their mutual relations. A simple heuristic algorithm for solving the SJD problems is proposed and it is proven that in the average case it is asymptotically sub-optimal. The obtained results are significantly extending the ones presented in the paper mentined above. The results achieved constitute a contribution to the field of scheduling problems as well as to the probabilistic analysis of the combinatorial optimization problems. These results could be

if p j −  j t j ≤ 0 then x j ( j ) = 0; p j ( j ) = 0; t j ( j ) = 0.

(5)

Let us denote:

zn () =

n 

p j ( j );

si () =

j=1

 pˆ ( j ) = Dn () =

0

if s j () ≤ d j (n ) ; otherwise

λi · di (n ); Sn () =

i=1

=

n 

t j ( j );

j=1

p j ( j )

n 

i 

n 

zˆn () =

n 

pˆ ( j );

j=1

λi · si ()

i=1

 j · t j ( j );

ϕn () = zn () + Dn () − Sn ().

j=1

The problem dual to SJD (2) is then as follows:

∗n = min ϕn (). ≥0

By the construction of zn (), zˆn (), Sn (), Dn (), ϕn () and ∗n () we have for any  ≥ 0:

zn () ≥ Sn () and

zˆn () ≤ zOPT (n ) ≤ ∗n ≤ ϕn () = zn () + Dn () − Sn ().

(6)

42

K. Szkatuła / European Journal of Operational Research 262 (2017) 40–45

Algorithm 1 Procedure to determine δ j (n) and  j (n ), j = 1, . . . , n.

3. Probabilistic analysis The following random model of the SJD problem (2) will be considered: • •



n ≥ 1, n is a positive integer, n → ∞, i, j = 1, . . . , n tj , pj , are realizations of mutually independent random variables and moreover tj , pj , are uniformly distributed over the (0, 1] interval; 0 ≤ d1 (n) ≤ d2 (n) ≤  ≤ dn (n) and  = {λ1 , . . . , λn } are deterministic, dj (n) are functions of n.

Let us compute the distributions and average values of ti (i ), pi (i ), as functions of n, i in the asymptotical case, when n → ∞:

Gi (i , x ) = P {ti (i ) < x} = P {ti < x ∪ ti > x ∩ pi < i · ti } =

⎧   i x·i ⎪ ⎨ 2 + x 1 − 2

 1 1 − 2 + x 1 − x·2i i ⎪ ⎩1

i ≤ 1 i > 1

if 0 < x ≤ min 1, 1i

 if x > min 1, 1i

=

1−x2 2·i x2 i + 2 2·i

⎪ x ⎪ ⎩

E (ti (i )) =



E ( pi (i )) =

1 0



if x ≤ i ≤ 1

 x · dHi (i , x ) =

1 3·i 1 2



if

2i 6

i ≥ 1 0 ≤ i ≤ 1

if

i ≥ 1

if

0 ≤ i ≤ 1.

By assumption  j = have

for all i = 1, . . . , n.

n

i= j

for k = l + 1, . . . , Checking Step: if j∗ = n then the procedure is completed. Otherwise, we put l ← j∗ and Main Recursive Step is repeated until j ∗ = n.

• •





The asymptotical analysis of the SJD problem consists in observing the behavior of certain problem characteristics when n → ∞. Therefore, it is assumed that some of the problem parameters may functionally depend on n, which is denoted by (n). This especially applies to deadlines di (n) and Lagrange multipliers (n ), λi (n ), i (n ), i = 1, . . . , n. This notation will be used when dependence on n is essential in terms of the context, and may be omitted, for brevity purposes, in general formulas, when dependence on n is not important. We are looking for such λ1 (n ), . . . , λn (n ) ≥ 0 that

E (si (i (n ))) ≤ di (n ),

(7)

λi , λ j ≥ 0, j = 1, . . . , n, and then we

1 ≥ 2 ≥ · · · ≥ n and thus E (t1 (1 )) ≤ E (t2 (2 )) ≤ · · · ≤ E (tn (n )).

(11)

j∗ .



if



d j ∗ ( n ) − dl ( n ) 1 , ; j∗ − l 2

k (n ) = arg {E (tk (k )) = δk (n )}



1 6·2i 1 − 3i 2



δk (n ) = min



if i ≤ x ≤ 1

x · dGi (i , x ) =

1 0

if i ≥ 1



and

(10)

algorithm is presented above in a new and simpler formulation and will be used as the base for further theoretical considerations. In Algorithm 1, the values of δ1 (n ), . . . , δn (n ) and 1 (n ), . . . , n (n ) are determined. Below, some of their features are considered:

if x ≥ 1

1

    j−1  j = max j d j−1 (n ) ≥ · d j (n ) j l< j≤n ∗



Hi (i , x ) = P { pi (i ) < x} = P { pi < x ∪ ti > x ∩ pi < i · ti }

⎧ 1− ⎪ ⎪ ⎨

Initialization Step: Let l ← 0, d0 (n ) ← 0 Main Recursive Step: Let



δ1 (n ) ≤ δ2 (n ) ≤ · · · ≤ δn (n );  i ) ≤ d (n ). If δi (n ) < δi+1 (n ) then ij=1 δ j (n ) = di (n ); j=1 δ j (n  i 1 if 0 < δ j (n ) ≤ 16 6 ·δ j ( n )  j (n ) = , j = 1, . . . , n; 3 if 16 < δ j (n ) ≤ 12 2 − 3 · δ j (n ) 1 ( n ) ≥  2 ( n ) ≥ · · · ≥  n ( n ) ; If δ j (n ) = δ j+1 (n ) then  j (n ) =  j+1 (n ), λ j (n ) = 0, E(sj ((n)) ≤ dj (n); if δ j (n ) < δ j+1 (n ) then  j (n ) <  j+1 (n ), λ j (n ) > 0, E (s j ((n ))) = d j (n );    n λ (n ) · ij=1 δ j (n ) = ni=1 λi (n ) · E (si ((n ))) = in=1 i ); i=1 λi (n ) · di (n 

Let us observe that if for certain i, 1 ≤ i < n

E (si ((n ))) = di (n ) and di+1 (n ) − di (n ) < E (ti+1 (i+1 (n ))) (9)

E (Zn ((n ))) =

which means that if for some sets of deadlines d1 (n ), d2 (n ), . . . , dn (n ) the vector (n), such that (9) holds, is determined, then (7) will not be fulfilled for all i = 1, . . . , n. This will be caused by monotonicity of j (n) and E(tj (j (n)), see (8). Hence, in Szkatuła (1998) a recursive Algorithm 1 determining (n), λi (n) ≥ 0, i = 1, . . . , n, guaranteeing that for each d1 (n) ≤ d2 (n) ≤  ≤ dn (n) (7) will be fulfilled, was proposed. This

+

3 2

· δ j (n )

if 0 < δ j (n ) ≤

· δ j (n ) · (1 − δ j (n ))

if

=

n 



j=1

where

n 

1 6

≤ δ j (n )

1 6 ≤ 12

.

E ( p( j (n )))

j=1

1



3 τ j (n ) + δ j (n )(1 − δ j (n )) + τ¯ j (n ) 8 2



1

if

0

1 6

< δ j (n ) ≤



2 · δ j (n ) 3



1 2

otherwise

and τ¯ j (n ) = 1 − τ j (n ), j = 1, . . . , n. It was proven in the paper by Szkatuła (1998) for the consid(n ) ered random model of the SJD problem (2) that if nln ≈ 0 then: ·δ ( n ) 1

then

E (si+1 ((n )) > di+1 (n )

1 8

Hence:

τ j (n ) = (8)

2 3

E ( p j ( j (n ))) =



zOPT (n ) ≈

n  j=1





1 3 · δ j (n ) τ j (n ) + (1 − δ j (n )) + τ¯ j (n ) 8 2



2 · δ j (n ) 3



(12) The main idea of the proof is based on showing that:

zˆn ((n )) ≈ zn ((n )) ≈ ϕn ((n )) ≈ ∗n ≈ zOPT (n ) ≈ E (zn ((n ))). (13)

K. Szkatuła / European Journal of Operational Research 262 (2017) 40–45

43

4. Intervals of deadliness and the approximate algorithm

where i = 1, . . . , j1 .

Construction of the δ j (n), j = 1, . . . , n, provided by the Algorithm 1 and described in the Section 3, indicates that values of the δ j (n) as well as their properties significantly depend on the mutual relations between d j (n ), j = 1, . . . , n. The assumption that dj (n) are monotonic, cf. (1), is essential in the construction of the Algorithm 1. Formula (10) clearly indicates that values δ1 (n ), δ2 (n ), . . . , δn (n ) depend on

Proof. In this case, when (18) holds, then in Algorithm 1, according to formula (10), first execution of the Main Recursive Step yields j∗ = j1 . Then, starting with l = j1 + 1, the Main Recursive Step will be performed at least once more and (19) will follow immediately from (11). 

d1 (n ), d2 (n ) − d1 (n ), . . . , dn (n ) − dn−1 (n ). To

be more precise, from the construction n i= j λi (n ), j = 1, . . . , n, it follows that:

 j (n ) =

of

δ j ( n ),

δ j (n ) = δ j+1 (n ) then  j (n ) =  j+1 (n ), λ j (n ) = 0, E (s j ((n ))) ≤ d j (n ); if δ j (n ) < δ j+1 (n ) then  j (n ) >  j+1 (n ), λ j (n ) > 0, E (s j ((n ))) = d j (n ).

if

From the duality theory it follows that if λi (n ) = 0, then the corresponding constraint in (2) is ”inactive”. It means that its satisfaction is secured by other “active” constraints for which λj (n) > 0, i, j ∈ {1, . . . , n}. Formula (10) makes it possible to distinguish three different classes of δ j (n ),  j (n ), λi (n ), i, j = 1, . . . , n. Lemma 1. If for all j = 2, . . . , n

j−1 d j−1 (n ) ≥ · d j (n ) j

(14)

δ1 (n ) = · · · = δn (n ); i (n ) = i+1 (n ) = λn (n ), λi (n ) = 0, (15) where i = 1, . . . , n − 1. Proof. If (14) holds, then in Algorithm 1, according to formula (10), Main Recursive Step is performed only once with j∗ = n and (15) will follow immediately from (11).  In the case considered in Lemma 1 only the last constraint is active and the SJD problem is reduced to the single-constraint knapsack problem (4). Lemma 2. If for all j = 2, . . . , n

j−1 · d j (n ) j

(16)

then

δ1 (n ) < δ2 (n ) < · · · < δn (n ); 1 (n ) > 2 (n ) > · · · > n (n ), λi (n ) > 0, (17) for i = 1, . . . , n. Proof. If (16) holds, then in Algorithm 1, according to formula (10), the Main Recursive Step is performed n times with j∗ = 1, 2, . . . , n, and (17) will follow immediately from (11).  Lemma 2deals with the situation when all n constraints are active. Lemma 3. If there exists j1 , 1 < j1 < n − 1 such that

d j−1 (n ) ≥

Theorem 1. If for all j = 2, . . . , n − 1



d j (n ) ∈

j−1 · d j (n ), j = 2, . . . , j1 ; and j j1 + 1 d j1 +1 (n ) < · d j1 +2 (n ) j1 + 2

(18)

then δ1 (n ) = · · · = δ j1 (n ) and

j j · d j+1 (n ), · d j−1 (n ) j+1 j−1

 (20)

holds, then Lemma 1 holds and (15) describes mutual relations between δ j (n), j (n), λi (n), i, j = 1, . . . , n. If for all j = 2, . . . , n − 1



d j (n ) ∈

then

d j−1 (n ) <

In Lemma 3 a mixed case is considered, where some, at least first j1 , constraints are inactive, while some constraints, at least one ( j1 + 1)th will be active. It also may happen that this situation will be repeated several times. For example, there may exist j2 and j3 , j1 < j2 < j3 < n, such that constraints j1 + 1, . . . , j2 are active, constraints j2 + 1, . . . , j3 are inactive and so on. For any given set of deadlines d1 (n ), d2 (n ), . . . , dn (n ) Lemmas 1, 2 or 3 are covering all possible relations between deadlines and the resulting “activity” status of constraints. Therefore, these three lemmas allow for introducing recursive intervals of deadlines corresponding to the three cases considered. The theorem below presents the main result of this paper.

j j · d j−1 (n ), · d j+1 (n ) j−1 j+1



(21)

holds, then Lemma 2 holds and (17) describes mutual relations between δ j (n ),  j (n ), λi (n ), i, j = 1, . . . , n. If there exists j1 , 2 < j1 < n − 1 such that d j1 +1 (n ) < j = 2, . . . , j1 − 1



d j (n ) ∈

j1 +1 j1 +2

j j · d j+1 (n ), · d j−1 (n ) j+1 j−1

· d j1 +2 (n ) and for all

 (22)

holds, then Lemma 3 holds and (19) describes mutual relations between δ j (n), j (n), λi (n), i, j = 1, . . . , n. Proof. In order to prove Theorem 1 it is sufficient to observe that Lemma 1 demonstrates (20), Lemma 2 demonstrates (21), and Lemma 3 demonstrates (22).  The results, summarized in Theorem 1 and Lemmas 1–3 go far beyond the results presented in Szkatuła (1998). These results allow to analyze the impact of the mutual relations of the deadlines dj (n), j = 1, . . . , n, on behavior of the optimal solution zOPT (n) in the asymptotical case, i.e. when n → ∞, for the considered random model of the SJD problem (2). Formulas (20)–(22) define in the recursive manner the deadline intervals. If deadlines d j (n ), j = 2, . . . , n − 1, belong to the corresponding deadlines intervals, as presented in (20)–(22), then it is guaranteed that δ j (n), j (n), λi (n ), i, j = 1, . . . , n, will belong to one of the three different classes defined by Lemmas 1–3 and Theorem 1. This provides for certain flexibility in defining actual values of deadlines, since they may vary within the proposed deadline intervals. Because of the recursive definition of the deadline intervals, first and last deadlines may have special influence on the interval construction. The three examples, presented below, illustrate the above defined classes of δ j (n), j (n), λi (n), i, j = 1, . . . , n. Example 1. Let

δ j1 (n ) < δ j1 +1 (n ); 1 (n ) = · · · =  j1 (n ) >  j1 +1 (n ), λi (n ) = 0, (19)

d j (n ) =

j and then 2

1 2

δ j (n ) = ,

j = 1, . . . , n;

dn ( n ) =

n . 2

44

K. Szkatuła / European Journal of Operational Research 262 (2017) 40–45

In this case, assumptions (14) of Lemma 1 are fulfilled and according to (10) we have:

zOPT (n ) ≈

1 ·n 2

(23)

which means that in this case only the last constraint is active, optimal solution has the maximum possible value and all jobs will be processed before their deadliness in the asymptotical case for the considered random model of the SJD problem. Example 2. Let

d j (n ) =

j2 and then 2n

δ j (n ) =

2j − 1 n , j = 1, . . . , n; dn ( n ) = . 2n 2

In this case, assumption (16) of Lemma 2 is fulfilled. All constraints are active, all jobs will be processed before their deadlines and therefore (23) will hold. Example 3. Let

 

j 1 n and then δ j (n ) = , j = 1, . . . , n∗ , n∗ = , 4 4 2 j2 2j − 1 d j (n ) = and then δ j (n ) = , j = n∗ + 1, . . . , n; 2n 2n n dn ( n ) = . 2 d j (n ) =

In this case, assumption (18) of Lemma 3, where j1 = n∗ , are fulfilled. According to (11), δ j (n ) = 12 , j = n∗ + 1, . . . , n, and from (12) we have:

zOPT (n ) ≈

1 3 1 ·n− · n∗ − , 2 32 2

which means that in this case some constraints will be active, while some inactive, and the optimal solution value is smaller than the possible maximum one. Some jobs will not be processed before their deadlines (providing no profit) in the asymptotical case for the considered random model of the SJD problem. An illustrative heuristic, greedy type algorithm, designed to solve the SJD problem (2) in the general deterministic case, is presented below. This algorithm is using the procedure equivalent to the one applied in the Algorithm 1. Algorithm 2 Heuristic algorithm to solve the SJD problem. Initialization Step: Let l ← 0, d0 (n ) ← 0 Main Recursive Step: Let

    dm ( n ) − dl ( n ) d j ( n ) − dl ( n )  j = max m  = min m−l j−l l< j≤n l
and

  ∗      j p j∗ pl+1   j∗ = min   t j () ≤ d j∗ (n ) ;  j∗ = ,..., ∈ j∗ tl+1 t j∗  j=l+1 (24) x j ← x j ( j∗ ), j = l + 1, . . . , j , refer to (5). ∗

Checking Step: if j∗ = n then the Algorithm 2 is completed. Otherwise, we put l ← j∗ and the Main Recursive Step is repeated until j ∗ = n. Algorithm 2 has extremely low computational complexity of order of O(n). It does not require sorting of elements as greedy type algorithms usually do. From the computational point of view, the most expensive are max and min operations, which have

computational cost of O(k), where k is the number of elements of the corresponding set. In the case when max and min operations are repeated k times over sets of order of k elements, the computational complexity will be of the order of O(k2 ). According to Lemmas 1–3, this situation cannot occur, since either the Main Recursive Step will be executed only once (Lemma 1) or it will be executed several times (n times in the case of Lemma 2 and the maximum of n − 1 times in the case of Lemma 3) but the number of elements of the corresponding sets will be small, i.e. of order n of m , where n is the number of jobs (i.e. the size of the problem) and m is the number of necessary repetitions of the Main Recursive Step. Therefore, the overall computational complexity of Algorithm 2 will be of the order of O(n). In the sense of the worst case analysis this algorithm always provides feasible solutions of the SJD problem (3), which is guaranteed by (24), but it does not have any guarantees of the accuracy of the solutions provided. Therefore, in the sense of the worst case analysis Algorithm 2 is an heuristic algorithm. However, for the random model of the problem (3), considered in this paper, Algorithm 2 is asymptotically sub-optimal. In the random case Algorithm 2 is behaving identically to the computational procedure described in the Algorithm 1. Asymptotical suboptimality of Algorithm 2 follows immediately from (13) and Theorem 1. The proposed algorithm is based on the main results of this paper, presented in the Lemmas 1–3 and Theorem 1, and it has mainly an illustrative purpose. A commonly used practice in testing of algorithms proposed for job sequencing or scheduling problems is to generate a number of random problems, whose coefficients are usually random integers from the intervals [0,100] or [0,10], cf. El-Bouri et al. (20 0 0), Sevaux and Dauzère-Pérès (2003), Baptiste and Le-Pape (2005), Baptiste et al. (2010), Detienne (2014), Levner and Elalouf (2014), Catanzaro et al. (2015), just to mention a few representative examples. Behavior of the SJD problem solutions, in the light of the results provided by the probabilistic analysis, may serve as the proper substitution for the computational tests, e.g. in the case of Algorithm 2, thus saving time and computational effort.

5. Concluding remarks In the present paper one of the classical scheduling problems – Sequencing Jobs with Deadlines problem (SJD) was considered. Probabilistic analysis of the impact of mutual relations between deadlines and their functional properties was performed for the random model of the SJD problem. As the result of this analysis, three specific categories of mutual relations between deadlines were identified. Then, on the basis of the results provided in Lemmas 1–3, Theorem 1 was formulated, in which recursive deadline intervals for the considered random model of the SJD problem were defined. In this framework, the roles of the first and last constraints, d1 (n) and dn (n), respectively, are crucial. Deadline intervals may provide substantial flexibility in formulating SJD problems, because mutual relations between deadlines may be analyzed in a more convenient manner and their influence on the SJD problem solutions (the list of the jobs to be performed before their deadlines and providing maximized profit) is demonstrated in the convenient and convincing manner. Another interesting result of the study, reported in the paper, is a simple heuristic algorithm of very low computational complexity, which in the average case, i.e. for the considered random model of the SJD problem, is asymptotically sub-optimal. These results are enriching the knowledge base for the Scheduling Problems, especially for the Sequencing Jobs with Deadlines problem and may also positively influence the solvability of the SJD problem instances in practical applications.

K. Szkatuła / European Journal of Operational Research 262 (2017) 40–45

Acknowledgments The research reported was partially supported by the National Science Centre Poland (NCN), decision no.: DEC2011/03/B/ST6/00364 The author wants to thank the anonymous referees for valuable comments and suggestions, which have allowed to significantly improve the present version of the paper. References Baptiste, P., Croce, F. D., Grosso, A., & T’kindt, V. (2010). Sequencing a single machine with due dates and deadlines: An ILP-based approach to solve very large instances. Journal of Scheduling, 13, 39–47. Baptiste, P., & Le-Pape, C. (2005). Scheduling a single machine to minimize a regular objective function under setup constraints. Discrete Optimization, 2, 83–99. ˙ Błazewicz, J., Ecker, K. H., Pesch, E., Schmidt, G., & Weglarz, J. (1996). Scheduling computer and manufacturing processes. Springer Verlag. Catanzaro, D., Gouveiac, L., & Labbé, M. (2015). Improved integer linear programming formulations for the job sequencing and tool switching problem. European Journal of Operational Research, 244, 766–777. Detienne, B. (2014). A mixed integer linear programming approach to minimize the number of late jobs with and without machine availability constraints. European Journal of Operational Research, 235, 540–552.

45

El-Bouri, A., Balakrishnan, S., & Popplewell, N. (20 0 0). Sequencing jobs on a single machine: A neural network approach. European Journal of Operational Research, 126, 474–490. Garey, M. R., & Johnson, D. S. (1979). Computers and Intractability: A guide to the theory of NP-completeness. San Francisco: Freeman. Janiak, A., Janiak, W. A., Krysiak, T., & Kwiatkowski, T. (2015). A survey on scheduling problems with due windows. European Journal of Operational Research, 242, 347–357. Kellerer, H., Pferschy, U., & Pisinger, D. (2004). Knapsack problems.. Springer Verlag. Kocur, G. (2010). Courses on computer algorithms in systems engineering, greedy algorithms (lecture 10): knapsack, job sequence. Massachusetts Institute of Technology: MIT OpenCourseWare. Lawler, E. L., & Moore, J. M. (1969). A functional equation and its application to resource allocation and sequencing problems. Management Science, 16, 77–84. Levner, E., & Elalouf, A. (2014). An improved approximation algorithm for the ancient scheduling problem with deadlines. In Proceedings of the 2014 international conference on control, decision and information technologies (coDIT). Puntambekar, A. A. (2009). Analysis of algorithm and design. Technical Publications. Sahni, S. K. (1976). Algorithms for scheduling independent jobs. Journal of ACM, 23, 116–127. Sevaux, M., & Dauzère-Pérès, S. (2003). Genetic algorithms to minimize the weighted number of late jobs on a single machine. European Journal of Operational Research, 151, 296–306. Szkatuła, K. (1998). Random sequencing jobs with deadlines problem: growth of the optimal solutions values. European Journal of Operational Research, 109, 160–169. Xia, Y., Chen, B., & Yue, J. (2008). Job sequencing and due date assignment in a single machine shop with uncertain processing times. Discrete Optimization, 184, 63–75.