27.07.2013 Views

The Doctor Rostering Problem - Asser Fahrenholz

The Doctor Rostering Problem - Asser Fahrenholz

The Doctor Rostering Problem - Asser Fahrenholz

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 4. Solving the DRP 16<br />

it in a short amount of time (Hopcroft et al. [13]). If the DRP problem is NP-complete<br />

and an algorithm does exist, able to solve the problem deterministically in polynomial<br />

time, then it would follow that all NP-complete problems are solvable deterministically<br />

in polynomial time and so P = NP , a statement that has been investigated for the last<br />

50 years without any definite results 1 . As such, it is widely believed that P = NP , since<br />

no polynomial time algorithms has been devised to solve an NP-complete problem.<br />

To prove that a problem is NP-complete, one can transform an already known NP-<br />

complete problem (in polynomial time) to the problem for which a proof is sought.<br />

Fortunately, a problem, very close to the DRP, has already been proven NP-complete. It<br />

is stated in Garey and Johnson [10] as [SS19], referring to Even et al. [9] who transformed<br />

the 3SAT (Karp [15]) problem, which again was transformed from the SAT problem<br />

(Cook [6]). <strong>The</strong> chain of transformations is shown in figure 4.1.<br />

Figure 4.1: <strong>The</strong> transformation chain from SAT to Timetable Design<br />

Garey and Johnson [10] defines the instance as: A set H of ”work periods”, a set C<br />

of ”craftsmen”, a set T of ”tasks”, a subset A(c) ⊆ H of ”available hours” for each<br />

craftsman c ∈ C, a subset A(t) ⊆ H of available hours for each task t ∈ T , and, for each<br />

pair (c, t) ∈ C × T , a number R(c, t) ∈ Z + 0<br />

of ”required work periods”.<br />

Applying this to the DRP: <strong>The</strong> set H defines the work periods in which shifts must lie,<br />

the set C is the set of doctors and the set T is the shifts. A(c) defines when a doctor<br />

is available, which in this project is defined by all the hard constraints except H4. A(t)<br />

describes when a shift can be performed and R(c,t) defines how long a shift t takes<br />

for doctor c to perform. In this project R(c, t) = 1 ∀ c, t. This instance describes a<br />

timetable for completing all shifts in time. <strong>The</strong> Timetable Design problem can thus be<br />

transformed to the DRP and hence, DRP is NP-complete. This means that no known<br />

algorithm can deterministically find an optimal solution to the DRP in polynomiel time.<br />

4.2 Exact methods<br />

Given a set of constraints, as described in chapter 3, the goal of finding a solution to the<br />

problem can be accomplished by using an optimal solver such as GAMS. As concluded<br />

above, solving the DRP to optimality can take an exponential amount of time. Due to<br />

1 One of the Millennium <strong>Problem</strong>s : Claymath.org/millennium/

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!