An Algebraic Approach to Scheduling Problems in Project Management - - PowerPoint PPT Presentation

an algebraic approach to scheduling problems in project
SMART_READER_LITE
LIVE PREVIEW

An Algebraic Approach to Scheduling Problems in Project Management - - PowerPoint PPT Presentation

An Algebraic Approach to Scheduling Problems in Project Management Nikolai Krivulin Faculty of Mathematics and Mechanics Saint Petersburg State University E-mail: nkk < at > math.spbu.ru URL: http://www.math.spbu.ru/user/krivulin/


slide-1
SLIDE 1

An Algebraic Approach to Scheduling Problems in Project Management

Nikolai Krivulin

Faculty of Mathematics and Mechanics Saint Petersburg State University

E-mail: nkk<at>math.spbu.ru URL: http://www.math.spbu.ru/user/krivulin/

Annual International Workshop on Advances in Methods

  • f Information and Communication Technology

Petrozavodsk, 2010

slide-2
SLIDE 2

Outline

Motivating Example Activity Network Model Schedule Development Problem Idempotent Algebra Notation and References Solution to Motivating Example Linear Equations of the First Kind Example 2: Start-to-Start Constraints Activity Network Model Schedule Development Problem Linear Equations of the Second Kind Example 3: Mixed Constraints Schedule Development Problem Conclusions Acknowledgments

  • N. Krivulin (SPbSU)

An Algebraic Approach AMICT’2010 2 / 22

slide-3
SLIDE 3

Motivating Example Activity Network Model

Motivating Example: Activity Network Model

Start-to-Finish Precedence Relationship

◮ Consider a project consisting of n activities ◮ Every activity finishes as soon as some work is performed within

some other activities

◮ For each activity i = 1, . . . , n we introduce the notation

xi , the initiation time; yi , the completion time; aij , the time activity j takes to do the work that has to be completed before the completion of activity i

◮ The completion time of activity i can be represented as

yi = max(x1 + ai1, . . . , xn + ain)

  • N. Krivulin (SPbSU)

An Algebraic Approach AMICT’2010 3 / 22

slide-4
SLIDE 4

Motivating Example Activity Network Model

Model Transformation

◮ Consider the precedence relationship equations

yi = max(x1 + ai1, . . . , xn + ain), i = 1, . . . , n

◮ Substitution of the symbol ⊕ for max , and ⊗ for + gives

yi = ai1 ⊗ x1 ⊕ · · · ⊕ ain ⊗ xn, i = 1, . . . , n

◮ With the symbol ⊗ omitted, the equations takes the form

yi = ai1x1 ⊕ · · · ⊕ ainxn, i = 1, . . . , n (note a formal similarity to equations in the conventional algebra yi = ai1x1 + · · · + ainxn, i = 1, . . . , n)

  • N. Krivulin (SPbSU)

An Algebraic Approach AMICT’2010 4 / 22

slide-5
SLIDE 5

Motivating Example Activity Network Model

Vector Representation

◮ The matrix-vector notation

A =    a11 · · · a1n . . . ... . . . an1 · · · ann    , x =    x1 . . . xn    , y =    y1 . . . yn   

◮ The precedence relationship equation in the vector form

y = Ax (matrix-vector multiplication is performed in the usual way with the standard addition and multiplication replaced with ⊕ and ⊗ )

  • N. Krivulin (SPbSU)

An Algebraic Approach AMICT’2010 5 / 22

slide-6
SLIDE 6

Motivating Example Activity Network Model

A Network and Its Matrix

◮ An activity network

✒✑ ✓✏

x1

✒✑ ✓✏

x2

✒✑ ✓✏

x3

✒✑ ✓✏

x4

✒✑ ✓✏

y1

✒✑ ✓✏

y2

✒✑ ✓✏

y3

✒✑ ✓✏

y4

❄ ❍❍❍❍❍❍❍❍❍❍❍ ❥ ❄

❅ ❅ ❅ ❅ ❅ ❘ ❄

❄ ✟ ✟ ✟ ✟ ✟ ✟ ✟ ✟ ✟ ✟ ✟ ✙

8 6 10 5 12 4 11 7 12 8

◮ The network precedence relationship matrix ( ✵ = −∞ )

A =     8 10 ✵ ✵ ✵ 5 4 8 6 12 11 7 ✵ ✵ ✵ 12    

  • N. Krivulin (SPbSU)

An Algebraic Approach AMICT’2010 6 / 22

slide-7
SLIDE 7

Motivating Example Schedule Development Problem

Schedule Development Problem

Schedule Development Under Late Finish Date Constraints

◮ Suppose each activity i = 1, . . . , n is subject to the time constraint

bi , the late finish date

◮ The vector notation: b = (b1, . . . , bn)T

Problem

◮ Find the vector x of start dates to meet the condition y = b ◮ The solution satisfies the linear equation of the first kind

Ax = b in a semiring with the operations ⊕ = max and ⊗ = +

  • N. Krivulin (SPbSU)

An Algebraic Approach AMICT’2010 7 / 22

slide-8
SLIDE 8

Idempotent Algebra Notation and References

Idempotent Algebra: Notation and References

Idempotent Semiring ❘max,+

◮ Idempotent semiring (semifield)

❘max,+ = ❳, ✵, ✶, ⊕, ⊗

◮ The set: ❳ = ❘ ∪ {−∞} ◮ The operations: ⊕ = max and ⊗ = + ◮ Null and identity elements: ✵ = −∞ and ✶ = 0 ◮ The inverse: for each x ∈ ❘ there exists x−1 ( −x in conventional

algebra)

◮ The power: for each x, y ∈ ❘ one can define xy ( xy in

conventional algebra)

  • N. Krivulin (SPbSU)

An Algebraic Approach AMICT’2010 8 / 22

slide-9
SLIDE 9

Idempotent Algebra Notation and References

Matrix Algebra Over ❘max,+

◮ Addition and multiplication

{A ⊕ B}ij = {A}ij ⊕ {B}ij, {BC}ij =

  • k

{B}ik{C}kj

◮ Identity and null matrices: I = diag(✶, . . . , ✶) and ✵ = (✵) ◮ The power: A0 = I , Ak+l = AkAl for all integer k, l ≥ 0 ◮ The norm and trace: for any matrix A = (aij)

A =

  • i,j

aij, tr A =

  • i

aii

◮ The pseudoinvers: for any matrix A = (aij) there exists

A− = (a−

ij) with a− ij = a−1 ji , if aji = ✵ , and a− ij = ✵ , otherwise

  • N. Krivulin (SPbSU)

An Algebraic Approach AMICT’2010 9 / 22

slide-10
SLIDE 10

Idempotent Algebra Notation and References

Early Publications

◮ N.N. Vorob’ev (1963), A.A. Korbut (1965), I.V. Romanovskii (1967)

Books

◮ R.A. Cuninghame-Green (1979), B. Carr´

e (1979)

◮ U. Zimmermann (1981), F

. Baccelli et al (1992)

◮ V.P

. Maslov, V.N. Kolokol’tsov (1994), J.S. Golan (1999)

◮ B. Heidergott et al (2006), N.K. Krivulin (2009)

Hundreds of Contributing Papers

◮ V.P

. Maslov, G.L. Litvinov, G.B. Shpiz, A.N. Sobolevskii, V.D. Matveenko, S.L. Blyumin

◮ G.J. Olsder, B. Heidergott, S. Gaubert, B. De Schutter, G. Cohen ◮

. . .

  • N. Krivulin (SPbSU)

An Algebraic Approach AMICT’2010 10 / 22

slide-11
SLIDE 11

Solution to Motivating Example Linear Equations of the First Kind

Solution to Example: First Kind Linear Equations

Problem

◮ Given a (m × n) -matrix A and a vector b ∈ ❘m , find the solution

x ∈ ❘n of the first kind equation Ax = b

Theorem (Existence and Uniqueness)

  • 1. The equation has a solution if and only if (A(b−A)−)−b = ✶
  • 2. The maximum solution, if any, takes the form x = (b−A)−
  • 3. If the columns of A form a minimal set generating b , then the

solution is unique

  • N. Krivulin (SPbSU)

An Algebraic Approach AMICT’2010 11 / 22

slide-12
SLIDE 12

Solution to Motivating Example Linear Equations of the First Kind

General Solution

◮ For the matrix A , consider a minimal subset of its columns

generating b , and denote the set of the column indices by J

◮ Let J be the set of all the subsets J ◮ Let GJ be the diagonal matrix that has its diagonal entry in row i

set to ✵ , if i ∈ J , and to ✶ , otherwise

Theorem

The general solution of the first kind equation is the family xJ = (b−A ⊕ vT GJ)−, v ∈ ❘n, J ∈ J

Corollary

The solution of the inequality Ax ≤ b is given by x ≤ (b−A)−

  • N. Krivulin (SPbSU)

An Algebraic Approach AMICT’2010 12 / 22

slide-13
SLIDE 13

Example 2: Start-to-Start Constraints Activity Network Model

Example 2: Activity Network Model

Start-to-Start Precedence Relationship

◮ A project involves n activities ◮ Every activity starts not earlier than some work is performed

within some other activities

◮ For each activity i = 1, . . . , n we introduce the notation

xi , the initiation time; yi , the completion time; aij , the time activity j takes to do the work that has to be completed before the start of activity i

◮ The initiation time of activity i satisfies the condition

xi ≥ max(x1 + ai1, . . . , xn + ain)

  • N. Krivulin (SPbSU)

An Algebraic Approach AMICT’2010 13 / 22

slide-14
SLIDE 14

Example 2: Start-to-Start Constraints Activity Network Model

Model Representation

◮ In terms of ❘max,+ , the precedence relationships take the form

xi ≥ ai1x1 ⊕ · · · ⊕ ainxn, i = 1, . . . , n

◮ With the matrix-vector notation, we arrive at the inequality

Ax ≤ x

Problem

◮ Find the vector x that satisfies the precedence constraints ◮ Of particular interest is the solution of the homogeneous linear

equation of the second kind Ax = x

  • N. Krivulin (SPbSU)

An Algebraic Approach AMICT’2010 14 / 22

slide-15
SLIDE 15

Example 2: Start-to-Start Constraints Activity Network Model

A Network and Its Matrix

◮ An activity network

✒✑ ✓✏

x1

✒✑ ✓✏

x2

✒✑ ✓✏

x3

✒✑ ✓✏

x4

✲ ❅ ❅ ❅ ❅ ■ ❅ ❅ ❅ ❅ ❘

✲ P P P P P P P P P P P P P P ✐

−2 3 −1 −1 −4 2

◮ The network precedence relationship matrix ( ✵ = −∞ )

A =     −2 ✵ ✵ ✵ 3 −1 −1 ✵ −4 2 ✵ ✵    

  • N. Krivulin (SPbSU)

An Algebraic Approach AMICT’2010 15 / 22

slide-16
SLIDE 16

Example 2: Start-to-Start Constraints Schedule Development Problem

Schedule Development Problem

Schedule Development Under Early Start Date Constraints

◮ Suppose each activity i = 1, . . . , n is subject to the time constraint

bi , the early start date

◮ The vector notation: b = (b1, . . . , bn)T

Problem

◮ Find a vector x so as to meet the conditions

Ax = x, x ≥ b

◮ The solution satisfies the nonhomogeneous linear equation of the

second kind Ax ⊕ b = x

  • N. Krivulin (SPbSU)

An Algebraic Approach AMICT’2010 16 / 22

slide-17
SLIDE 17

Example 2: Start-to-Start Constraints Linear Equations of the Second Kind

Linear Equations of the Second Kind

Problem: Solution for Homogeneous Bellman Equation

◮ Given a (n × n) -matrix A , find a solution x ∈ ❘n of the equation

Ax = x

Problem: Solution for Nonhomogeneous Bellman Equation

◮ Given a (n × n) -matrix A and a vector b ∈ ❘n , find a solution

x ∈ ❘n of the equation Ax ⊕ b = x

  • N. Krivulin (SPbSU)

An Algebraic Approach AMICT’2010 17 / 22

slide-18
SLIDE 18

Example 2: Start-to-Start Constraints Linear Equations of the Second Kind

Solution

◮ For each (n × n) -matrix A , we introduce the matrices

A+ = I ⊕ A ⊕ · · · ⊕ An−1, A× = AA+ = A ⊕ · · · ⊕ An, and the symbol Tr A =

n

  • m=1

tr Am

◮ Provided that Tr A = ✶ , we define the matrix A∗ with the columns

a∗

i =

  • a+

i ,

if a×

ii = ✶,

✵,

  • therwise,

where a+

i

is column i of A+ , and a×

ii is entry (i, i) of A×

  • N. Krivulin (SPbSU)

An Algebraic Approach AMICT’2010 18 / 22

slide-19
SLIDE 19

Example 2: Start-to-Start Constraints Linear Equations of the Second Kind

Lemma

Let x be the general solution of the homogeneous equation with an irreducible matrix. Then it holds 1) if Tr A = ✶ , then x = A∗v for all v ∈ ❘n ; 2) if Tr A = ✶ , then there exists only the solution x = ✵

Theorem

Let x be the general solution of the nonhomogeneous equation with an irreducible matrix. Then it holds 1) if Tr A < ✶ , then there exists the unique solution x = A+b ; 2) if Tr A = ✶ , then x = A+b ⊕ A∗v for all v ∈ ❘n ; 3) if Tr A > ✶ , then with the condition b = ✵ , there exists only the solution x = ✵ , whereas with b = ✵ there is no solution

  • N. Krivulin (SPbSU)

An Algebraic Approach AMICT’2010 19 / 22

slide-20
SLIDE 20

Example 3: Mixed Constraints Schedule Development Problem

Example 3: Schedule Development Problem

Schedule Development Under Mixed Time Constraints

◮ Consider a project with late finish date constraints in the form

A1x ≤ b

◮ Suppose the project also has early start date constraints imposed

A2x = x

Problem

◮ Find the vector x to meet the mixed set of precedence constraints

  • N. Krivulin (SPbSU)

An Algebraic Approach AMICT’2010 20 / 22

slide-21
SLIDE 21

Example 3: Mixed Constraints Schedule Development Problem

Solution

◮ Suppose the equation A2x = x has the solution

x = A∗

2v ◮ Substitution of the solution into the inequality A1x ≤ b gives

A1A∗

2v ≤ b ◮ The maximum solution of the last inequality takes the form

v = (b−A1A∗

2)− ◮ Therefore, the vector x of activity initiation dates is written as

x = A∗

2(b−A1A∗ 2)−

  • N. Krivulin (SPbSU)

An Algebraic Approach AMICT’2010 21 / 22

slide-22
SLIDE 22

Conclusions Acknowledgments

Conclusions

◮ A new approach to schedule development is proposed based on

idempotent algebra

◮ The approach offers a convenient algebraic technique to describe

and analyze different logical relationships in schedules

◮ The approach reduces scheduling problems to solution of linear

equations in an idempotent semiring

◮ The solutions to the equations are given in compact vector form ◮ The approach and related techniques provide the basis for new

efficient software solutions for schedule development

Acknowledgments

◮ The work was supported in part by the Russian Foundation for

Basic Research Grant #09-01-00808.

  • N. Krivulin (SPbSU)

An Algebraic Approach AMICT’2010 22 / 22