Skip to content

pkiosif/pMD-problems

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pMD-problems

A library of p-median problems with distance constraints (pMDs).

These benchmarks complement the paper "A Heuristic CP Method for the p-median Problem with Distance Constraints".

Description of input files:

The example below demonstrates a small pMD problem input file. The first line consists of four (4) different number 25 3 4 3. Let |CL| be the number of clients on a grid, |P| the number of candidate facility points and |F| the number of facilities. In the given example Grid size = 25 $\times$ 25, |CL| = 3, |P| = 4 and |F| = 3.

Next, the clients' and candidate facility points' IDs are presented (e.g. 3 clients: 11, 12, 13 where client1 ID = 11). Afterwards, the distance constraints between facilities and clients and between facilities are presented in turn.

Distance constraints between facilities and clients: The first line after '3 constraints between facilities and clients:', contains '0 0' meaning that the first facility (x0) must have an Euclidean distance greater than (>) zero (0) from all clients. Similarly, the second facility (x1) must have D[x1,c] > 1 $\forall c \in CL$.

Distance constraints between facilities: The first line after '3 constraints between facilities:', contains '0 1 0' meaning that the first and second facilities must be located at an Euclidean distance greater than (>) zero (0). Similarly, D[x1, x2] > 0.

Thereafter, the shortest path and Euclidean distances are given between facility points and clients, and between facility points.

SP and Euclidean distances between facility points: The first line after '12 shortest paths and Euclidean distances between candidate facilities:', contains '4 7 5 2.236068' meaning that facility points with ID = 4 and ID = 7 (or fp0 and fp1) are at distances SP[fp0, fp1] = 5 and D[fp0, fp1] = 2.236068, where SP is the shortest path distance and D the Euclidean distance.

SP and Euclidean distances between facility points and clients: The first line after '12 shortest paths and Euclidean distances between clients and candidate facilities:', contains '11 4 5 3.605551' meaning that client with ID = 11 and facility point with ID = 4 (or c0 and fp0) are at distances SP[c0, fp0] = 5 and D[c0, fp0] = 3.605551, where SP is the shortest path distance and D the Euclidean distance.

A small pMD example:

25 3 4 3
3 clients:
11
12
13
4 candidate facilities:
4
7
9
14
3 constraints between facilities and clients:
0 0
1 1
2 1
3 constraints between facilities:
0 1 0
0 2 0
1 2 0
12 shortest paths and Euclidean distances between candidate facilities:
4 7 5 2.236068
4 9 1 1.000000
4 14 2 2.000000
7 4 5 2.236068
7 9 4 2.000000
7 14 3 2.236068
9 4 1 1.000000
9 7 4 2.000000
9 14 1 1.000000
14 4 2 2.000000
14 7 3 2.236068
14 9 1 1.000000
12 shortest paths and Euclidean distances between clients and candidate facilities:
11 4 5 3.605551
11 7 2 1.414214
11 9 4 3.162278
11 14 3 3.000000
12 4 4 2.828427
12 7 1 1.000000
12 9 3 2.236068
12 14 2 2.000000
13 4 3 2.236068
13 7 2 1.414214
13 9 2 1.414214
13 14 1 1.000000

About

A library of p-median problems with distance constraints (pMDs).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors