eren darici


Lab 4 - Assignment Problems and Shortest Path

1. Introduction

This lab introduces two important network optimization models:

Topics covered include:


2. Assignment Problem

The assignment problem seeks to assign resources to tasks while minimizing cost or maximizing effectiveness.

Common applications include:

The assignment problem is a special case of the transportation problem where:


3. Machineco Assignment Problem

Machineco has four machines and four jobs.

Each machine must be assigned to exactly one job, and each job must be assigned to exactly one machine.

The setup times (hours) are given below.

MachineJob 1Job 2Job 3Job 4
Machine 114587
Machine 221265
Machine 37839
Machine 424610

Objective: Minimize total setup time.


4. Assignment Problem Mathematical Model

Decision Variables

$$ x_{ij} = \begin{cases} 1 & \text{if machine } i \text{ is assigned to job } j\\ 0 & \text{otherwise} \end{cases} $$

Objective Function

Minimize total setup time:

$$ \min Z = \sum_{i=1}^{4} \sum_{j=1}^{4} c_{ij}x_{ij} $$

where:


Constraints

Each Machine Assigned Exactly Once
$$ \sum_{j=1}^{4} x_{ij} = 1 \qquad \forall i = 1,2,3,4 $$

Each machine must receive exactly one assignment.


Each Job Assigned Exactly Once
$$ \sum_{i=1}^{4} x_{ij} = 1 \qquad \forall j = 1,2,3,4 $$

Each job must be assigned to exactly one machine.


Binary Constraints
$$ x_{ij}\in\{0,1\} $$

5. Shortest Path Problem

The shortest path problem seeks the minimum-cost path between two nodes in a network.

Applications include:

A network consists of:


6. General Shortest Path Model

Decision Variables

$$ x_{ij} = \begin{cases} 1 & \text{if arc } (i,j) \text{ is selected}\\ 0 & \text{otherwise} \end{cases} $$

Objective Function

Minimize total path cost:

$$ \min Z = \sum_{(i,j)\in A} c_{ij}x_{ij} $$

where:


Flow Conservation Constraints

For every node:

$$ \begin{aligned} \sum_{j:(i,j)\in A} x_{ij} {}- \sum_{j:(j,i)\in A} x_{ji} &= \begin{cases} 1 & \text{if } i = \text{source}\\ -1 & \text{if } i = \text{destination}\\ 0 & \text{otherwise} \end{cases} \end{aligned} $$

Interpretation:


Binary Constraints

$$ x_{ij}\in\{0,1\} $$

7. Seervada Park Example

Seervada Park wants to determine the shortest path between an origin node and a destination node.

Network Diagram

Seervada Park network diagram

Each arc represents a possible route with an associated distance.

Goal: Find the shortest path from node $O$ (origin) to node $T$ (destination).


8. Seervada Mathematical Model

Decision Variables

$$ x_{ij} = \begin{cases} 1 & \text{if arc } (i,j) \text{ is used}\\ 0 & \text{otherwise} \end{cases} $$

Objective Function

$$ \min Z = \sum c_{ij}x_{ij} $$

where:


9. Seervada Flow Constraints

Origin Node

$$ \sum_j x_{Oj} - \sum_j x_{jO} = 1 $$

One unit of flow must leave the origin.


Destination Node

$$ \sum_j x_{jT} - \sum_j x_{Tj} = 1 $$

One unit of flow must arrive at the destination.


Intermediate Nodes

For nodes $A$, $B$, $C$, $D$, and $E$:

$$ \sum_j x_{ij} - \sum_j x_{ji} = 0 $$

Flow entering a node must equal flow leaving that node.


Binary Constraints

$$ x_{ij}\in\{0,1\} $$

View Slides


Materials


References


← Back to Course Home