Skip to content

Commit 39a1da6

Browse files
Copilotbernalde
andcommitted
Enable all models and add links to model directories in size comparison table
Co-authored-by: bernalde <8647329+bernalde@users.noreply.github.com>
1 parent fe0d41b commit 39a1da6

File tree

17 files changed

+204
-30
lines changed

17 files changed

+204
-30
lines changed

README.md

Lines changed: 28 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,37 @@
77
We envision GDPlib as an open library of GDP models to provide examples for prospective modelers, and to provide a benchmarking set for algorithm developers.
88
We invite contributions to this library from the community, provided under the same BSD-3-clause or compatible license.
99

10-
## Model Size Example
10+
## Model Size Comparison
1111

1212
The following table shows the size metrics for all models in GDPlib:
1313

14-
| Component | jobshop | water_network |
15-
|:----------------------|----------:|----------------:|
16-
| variables | 10 | 395 |
17-
| binary_variables | 6 | 10 |
18-
| integer_variables | 0 | 0 |
19-
| continuous_variables | 4 | 385 |
20-
| disjunctions | 3 | 5 |
21-
| disjuncts | 6 | 10 |
22-
| constraints | 9 | 329 |
23-
| nonlinear_constraints | 0 | 33 |
14+
| Component | [biofuel](./gdplib/biofuel/) | [disease_model](./gdplib/disease_model/) | [gdp_col](./gdplib/gdp_col/) | [hda](./gdplib/hda/) | [jobshop](./gdplib/jobshop/) | [med_term_purchasing](./gdplib/med_term_purchasing/) | [methanol](./gdplib/methanol/) | [modprodnet](./gdplib/modprodnet/) | [positioning](./gdplib/positioning/) | [spectralog](./gdplib/spectralog/) | [stranded_gas](./gdplib/stranded_gas/) | [syngas](./gdplib/syngas/) |
15+
|:----------------------|-------------------------------:|-------------------------------------------:|-------------------------------:|-----------------------:|-------------------------------:|-------------------------------------------------------:|---------------------------------:|-------------------------------------:|---------------------------------------:|-------------------------------------:|-----------------------------------------:|-----------------------------:|
16+
| variables | 36840 | 1250 | 442 | 1158 | 10 | 1165 | 287 | 488 | 56 | 128 | 57810 | 367 |
17+
| binary_variables | 516 | 52 | 30 | 12 | 6 | 216 | 8 | 2 | 50 | 60 | 192 | 46 |
18+
| integer_variables | 4356 | 0 | 0 | 0 | 0 | 0 | 0 | 363 | 0 | 0 | 45360 | 0 |
19+
| continuous_variables | 31968 | 1198 | 412 | 1146 | 4 | 949 | 279 | 123 | 6 | 68 | 12258 | 321 |
20+
| disjunctions | 252 | 26 | 15 | 6 | 3 | 72 | 4 | 1 | 25 | 30 | 96 | 23 |
21+
| disjuncts | 516 | 52 | 30 | 12 | 6 | 216 | 8 | 2 | 50 | 60 | 192 | 46 |
22+
| constraints | 12884 | 831 | 610 | 728 | 9 | 762 | 429 | 486 | 30 | 158 | 14959 | 543 |
23+
| nonlinear_constraints | 12 | 0 | 262 | 151 | 0 | 0 | 55 | 1 | 25 | 8 | 18 | 48 |
24+
25+
This table was automatically generated using the `generate_model_size_report.py` script.
26+
27+
## Model Size Comparison
28+
29+
The following table shows the size metrics for all models in GDPlib:
30+
31+
| Component | [batch_processing](./gdplib/batch_processing/) | [biofuel](./gdplib/biofuel/) | [cstr](./gdplib/cstr/) | [disease_model](./gdplib/disease_model/) | [ex1_linan_2023](./gdplib/ex1_linan_2023/) | [gdp_col](./gdplib/gdp_col/) | [hda](./gdplib/hda/) | [jobshop](./gdplib/jobshop/) | [med_term_purchasing](./gdplib/med_term_purchasing/) | [methanol](./gdplib/methanol/) | [modprodnet](./gdplib/modprodnet/) | [positioning](./gdplib/positioning/) | [small_batch](./gdplib/small_batch/) | [spectralog](./gdplib/spectralog/) | [stranded_gas](./gdplib/stranded_gas/) | [syngas](./gdplib/syngas/) | [water_network](./gdplib/water_network/) |
32+
|:----------------------|-------------------------------------------------:|-------------------------------:|-------------------------:|-------------------------------------------:|---------------------------------------------:|-------------------------------:|-----------------------:|-------------------------------:|-------------------------------------------------------:|---------------------------------:|-------------------------------------:|---------------------------------------:|---------------------------------------:|-------------------------------------:|-----------------------------------------:|-----------------------------:|-------------------------------------------:|
33+
| variables | 288 | 36840 | 76 | 1250 | 12 | 442 | 1158 | 10 | 1165 | 287 | 488 | 56 | 37 | 128 | 57810 | 367 | 395 |
34+
| binary_variables | 138 | 516 | 20 | 52 | 10 | 30 | 12 | 6 | 216 | 8 | 2 | 50 | 18 | 60 | 192 | 46 | 10 |
35+
| integer_variables | 0 | 4356 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 363 | 0 | 0 | 0 | 45360 | 0 | 0 |
36+
| continuous_variables | 150 | 31968 | 56 | 1198 | 2 | 412 | 1146 | 4 | 949 | 279 | 123 | 6 | 19 | 68 | 12258 | 321 | 385 |
37+
| disjunctions | 9 | 252 | 10 | 26 | 2 | 15 | 6 | 3 | 72 | 4 | 1 | 25 | 9 | 30 | 96 | 23 | 5 |
38+
| disjuncts | 18 | 516 | 20 | 52 | 10 | 30 | 12 | 6 | 216 | 8 | 2 | 50 | 18 | 60 | 192 | 46 | 10 |
39+
| constraints | 601 | 12884 | 100 | 831 | 10 | 610 | 728 | 9 | 762 | 429 | 486 | 30 | 34 | 158 | 14959 | 543 | 329 |
40+
| nonlinear_constraints | 1 | 12 | 17 | 0 | 0 | 262 | 151 | 0 | 0 | 55 | 1 | 25 | 1 | 8 | 18 | 48 | 33 |
2441

2542
This table was automatically generated using the `generate_model_size_report.py` script.
2643

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
| Component | Number |
2+
|:----------------------|---------:|
3+
| variables | 288 |
4+
| binary_variables | 138 |
5+
| integer_variables | 0 |
6+
| continuous_variables | 150 |
7+
| disjunctions | 9 |
8+
| disjuncts | 18 |
9+
| constraints | 601 |
10+
| nonlinear_constraints | 1 |
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
| Component | Number |
2+
|:----------------------|---------:|
3+
| variables | 36840 |
4+
| binary_variables | 516 |
5+
| integer_variables | 4356 |
6+
| continuous_variables | 31968 |
7+
| disjunctions | 252 |
8+
| disjuncts | 516 |
9+
| constraints | 12884 |
10+
| nonlinear_constraints | 12 |

gdplib/cstr/model_size_report.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
| Component | Number |
2+
|:----------------------|---------:|
3+
| variables | 76 |
4+
| binary_variables | 20 |
5+
| integer_variables | 0 |
6+
| continuous_variables | 56 |
7+
| disjunctions | 10 |
8+
| disjuncts | 20 |
9+
| constraints | 100 |
10+
| nonlinear_constraints | 17 |
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
| Component | Number |
2+
|:----------------------|---------:|
3+
| variables | 1250 |
4+
| binary_variables | 52 |
5+
| integer_variables | 0 |
6+
| continuous_variables | 1198 |
7+
| disjunctions | 26 |
8+
| disjuncts | 52 |
9+
| constraints | 831 |
10+
| nonlinear_constraints | 0 |
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
| Component | Number |
2+
|:----------------------|---------:|
3+
| variables | 12 |
4+
| binary_variables | 10 |
5+
| integer_variables | 0 |
6+
| continuous_variables | 2 |
7+
| disjunctions | 2 |
8+
| disjuncts | 10 |
9+
| constraints | 10 |
10+
| nonlinear_constraints | 0 |
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
| Component | Number |
2+
|:----------------------|---------:|
3+
| variables | 442 |
4+
| binary_variables | 30 |
5+
| integer_variables | 0 |
6+
| continuous_variables | 412 |
7+
| disjunctions | 15 |
8+
| disjuncts | 30 |
9+
| constraints | 610 |
10+
| nonlinear_constraints | 262 |

gdplib/hda/model_size_report.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
| Component | Number |
2+
|:----------------------|---------:|
3+
| variables | 1158 |
4+
| binary_variables | 12 |
5+
| integer_variables | 0 |
6+
| continuous_variables | 1146 |
7+
| disjunctions | 6 |
8+
| disjuncts | 12 |
9+
| constraints | 728 |
10+
| nonlinear_constraints | 151 |
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
| Component | Number |
2+
|:----------------------|---------:|
3+
| variables | 1165 |
4+
| binary_variables | 216 |
5+
| integer_variables | 0 |
6+
| continuous_variables | 949 |
7+
| disjunctions | 72 |
8+
| disjuncts | 216 |
9+
| constraints | 762 |
10+
| nonlinear_constraints | 0 |
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
| Component | Number |
2+
|:----------------------|---------:|
3+
| variables | 287 |
4+
| binary_variables | 8 |
5+
| integer_variables | 0 |
6+
| continuous_variables | 279 |
7+
| disjunctions | 4 |
8+
| disjuncts | 8 |
9+
| constraints | 429 |
10+
| nonlinear_constraints | 55 |

0 commit comments

Comments
 (0)