Skip to content

Project Longest Path Model

Definition

The course's project longest path model uses a directed acyclic activity network with start SS and finish TT. Each edge has an activity duration; an outgoing activity may start only after all activities entering its starting vertex finish. Under these precedence rules and without additional resource restrictions, project duration is the length of a longest SS-to-TT path.


Interpretation

The project cannot finish before its longest chain of dependent activities has finished. Activities on different chains can run side by side, but along one chain each activity must wait for the previous one, so the project duration is the length of the longest SS-to-TT path. The model finds it with binary edge-selection variables.

A project network from S to T with activities A to F as edges labelled by durations and the earliest start time at each node; the red path through nodes 2 and 3 and the path through node 1 both have the maximum length 9.

Each node carries its earliest start time: the largest total duration over the paths from SS to that node. Node 3 can start only when both CC and DD are done, at max⁡{3+4, 2+5}=7\max\{3+4,\,2+5\}=7, and TT is reached at max⁡{7+2, 2+6}=9\max\{7+2,\,2+6\}=9. The red path S→2→3→TS\to2\to3\to T has length 2+5+2=92+5+2=9, but so does S→1→3→TS\to1\to3\to T with 3+4+2=93+4+2=9: a longest path need not be unique. The path through FF has length 88, so activity FF could finish one time unit later without delaying the project.

The formulation reuses the shortest path binary formulation: one unit of flow leaves SS, enters TT and is balanced at every other node, but the objective is maximized instead of minimized. This is safe because a precedence network is acyclic, since a cycle would mean that an activity waits for itself; with cycles, maximizing could select an extra cycle that satisfies the balance equations without lying on the SS-to-TT path.

A common slip is to add up all activity durations. Activities on parallel chains overlap in time, so only the durations along one chain count.


Key Results

  • Maximize the sum of selected activity durations.
  • Use one unit of source-to-sink binary flow with balance at intermediate vertices.
  • Acyclicity matters: in a general cyclic network, flow balance alone could allow unrelated selected cycles.

Examples

In the figure, both critical paths, S−2−3−TS-2-3-T with 2+5+2=92+5+2=9 and S−1−3−TS-1-3-T with 3+4+2=93+4+2=9, have duration 9, compared with 8 for S−2−TS-2-T. Negating the activity lengths turns this acyclic longest-path calculation into a shortest-path calculation; the lack of cycles permits the negative lengths.

  • In the exercise, S−A−D−F−TS-A-D-F-T has duration 5+2+6+4=175+2+6+4=17.
  • S−B−D−F−TS-B-D-F-T has duration 3+3+6+4=163+3+6+4=16.

Prerequisites

Sources

Keywords: critical path method, CPM, critical path

Last updated: 20 October 2026 03:02