Skip to content

Commit 56f5784

Browse files
committed
Update example notebook
1 parent d4868aa commit 56f5784

File tree

3 files changed

+297
-24
lines changed

3 files changed

+297
-24
lines changed

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ This library implements parsers for various project scheduling benchmark instanc
99
- RCPSP with Minimal and Maximal Time Lags (RCPSP/max)
1010
- Resource-Constrained Multi Project Scheduling Problem (RCMPSP)
1111
- RCPSP with flexible project structure (RCPSP-PS) and RCPSP with alternative subgraphs (RCPSP-AS)
12+
- Multi-skilled RCPSP (MSRCPSP)
1213

1314
`psplib` has no dependencies and can be installed in the usual way:
1415

@@ -25,16 +26,16 @@ pip install psplib
2526
4
2627

2728
>>> instance.resources
28-
[Resource(capacity=12, renewable=True), ..., Resource(capacity=12, renewable=True)]
29+
[Resource(capacity=12, renewable=True, skills=None), ..., Resource(capacity=12, renewable=True, skills=None)]
2930

3031
>>> instance.num_activities
3132
32
3233

3334
>>> instance.activities
34-
[Activity(modes=[Mode(duration=0, demands=[0, 0, 0, 0])], successors=[1, 2, 3], delays=None, name=''),
35-
Activity(modes=[Mode(duration=8, demands=[4, 0, 0, 0])], successors=[5, 10, 14], delays=None, name=''),
35+
[Activity(modes=[Mode(duration=0, demands=[0, 0, 0, 0])], successors=[1, 2, 3], delays=None, skills=None, name=''),
36+
Activity(modes=[Mode(duration=8, demands=[4, 0, 0, 0])], successors=[5, 10, 14], delays=None, skills=None, name=''),
3637
...,
37-
Activity(modes=[Mode(duration=0, demands=[0, 0, 0, 0])], successors=[], delays=None, name='')]
38+
Activity(modes=[Mode(duration=0, demands=[0, 0, 0, 0])], successors=[], delays=None, skills=None, name='')]
3839
```
3940

4041
See [this](https://github.com/PyJobShop/PSPLIB/blob/main/example.ipynb) notebook for a slightly longer example demonstration of PSPLIB.
@@ -53,6 +54,7 @@ Specifically, we included an extra line that defines for each task whether it is
5354
6. `aslib`: The **ASLIB format** is the format used by RCPSP-AS instances from the ASLIB instance set at [OR&S project database](https://www.projectmanagement.ugent.be/research/data).
5455
ASLIB consist of three different parts (a, b, c).
5556
To use this parser, you have to merge parts (a) and (b) into a single file - part (c) is not parsed.
57+
7. `mslib`: The **MSLIB format** is the format used by MSRCPSP instances from the MSLIB instance set at [OR&S project database](https://www.projectmanagement.ugent.be/research/project_scheduling/MSRCPSP).
5658

5759
## Instance databases
5860

data/MSLIB_Set1_1.msrcp

Lines changed: 146 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,146 @@
1+
\* Project Module *\
2+
32 4 4 5
3+
4+
133
5+
6+
130
7+
8+
0 16 2 3 4 5 6 7 8 9 10 13 14 16 17 18 19 31
9+
7 8 11 15 23 24 26 27 28 29
10+
1 3 11 24 27
11+
9 4 20 21 22 23
12+
9 4 20 21 24 25
13+
4 4 20 23 25 30
14+
6 4 20 21 22 26
15+
8 2 12 20
16+
5 3 20 21 26
17+
7 3 21 23 24
18+
9 2 20 21
19+
4 2 22 25
20+
3 2 21 23
21+
7 2 20 21
22+
3 1 22
23+
5 1 22
24+
4 1 21
25+
7 1 20
26+
2 1 20
27+
8 1 32
28+
7 1 32
29+
10 1 32
30+
9 1 32
31+
2 1 32
32+
3 1 32
33+
1 1 32
34+
2 1 32
35+
8 1 32
36+
8 1 32
37+
3 1 32
38+
10 1 32
39+
0 0
40+
41+
\* Workforce Module *\
42+
1 1 1 1
43+
1 1 1 1
44+
1 1 1 1
45+
1 1 1 1
46+
47+
\* Workforce Module with Skill Levels *\
48+
1 1 4 3
49+
3 2 1 4
50+
4 5 2 3
51+
5 1 1 3
52+
53+
\* Skill Requirements Module *\
54+
0 0 0 0
55+
0 3 0 0
56+
1 0 0 0
57+
0 0 3 0
58+
0 0 0 2
59+
0 0 4 0
60+
1 0 0 0
61+
0 0 3 0
62+
2 0 0 0
63+
2 0 0 0
64+
0 0 3 0
65+
0 0 0 4
66+
0 0 1 0
67+
0 0 2 0
68+
0 0 4 0
69+
0 0 0 2
70+
3 0 0 0
71+
0 3 0 0
72+
0 0 0 4
73+
0 1 0 0
74+
0 0 0 3
75+
0 0 0 3
76+
3 0 0 0
77+
0 0 0 2
78+
0 4 0 0
79+
0 1 0 0
80+
0 2 0 0
81+
2 0 0 0
82+
0 0 0 4
83+
4 0 0 0
84+
0 0 3 0
85+
0 0 0 0
86+
87+
\* Skill Level Requirements Module *\
88+
-1
89+
1 1 2
90+
1
91+
1 1 2
92+
3 4
93+
1 1 2 4
94+
5
95+
1 2 4
96+
4 5
97+
3 4
98+
1 2 4
99+
3 3 3 4
100+
1
101+
1 2
102+
1 1 2 4
103+
3 3
104+
1 3 5
105+
1 2 5
106+
3 3 3 4
107+
1
108+
3 3 4
109+
3 3 4
110+
1 3 4
111+
3 3
112+
1 1 2 5
113+
1
114+
1 5
115+
1 5
116+
3 3 3 4
117+
1 3 4 5
118+
1 1 4
119+
-1
120+
121+
\* Cost Module
122+
100 1
123+
124+
4 8 12 16 20
125+
7 14 21 28 35
126+
6 12 18 24 30
127+
6 12 18 24 30
128+
129+
0.02 0.04 0.06 0.08 0.1
130+
0.07 0.14 0.21 0.28 0.35
131+
0.06 0.12 0.18 0.24 0.3
132+
0.09 0.18 0.27 0.36 0.45
133+
134+
\* Common Resource Usage Module *\
135+
6
136+
137+
39 32 30 26 26
138+
38 37 30 30 26
139+
36 34 34 31 21
140+
48 40 28 24 20
141+
142+
\* Rework Module *\
143+
0.67 0.67 0.63 0.61 0.61
144+
0.7 0.63 0.63 0.61 0.55
145+
0.72 0.65 0.62 0.57 0.55
146+
0.75 0.75 0.69 0.6 0.56

0 commit comments

Comments
 (0)