-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathinput.kdl
More file actions
89 lines (77 loc) · 1.72 KB
/
input.kdl
File metadata and controls
89 lines (77 loc) · 1.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
data "links" source="data/links.csv" {
set "area" as="a"
set "tech" as="i"
alias "generators" column="gen"
alias "buses" column="bus"
set "generators" as="g"
set "buses" as="b"
set "feasible_links" {
index "a" { in "area" }
index "i" { in "tech" }
index "g" { in "generators" }
index "b" { in "buses" }
filter { feasible > 0 }
}
param "capacity_mw" {
index "a"
index "i"
index "g"
index "b"
}
param "priority_floor_mw" {
index "a"
index "i"
index "g"
index "b"
}
}
set "priority_links" {
in "feasible_links"
index "a" { in "area" }
index "i" { in "tech" }
index "g" { in "generators" }
index "b" { in "buses" }
filter { area == "south" }
}
model "NodalAllocation" {
param "capacity_mw" {
index "a"
index "i"
index "g"
index "b"
}
param "priority_floor_mw" {
index "a"
index "i"
index "g"
index "b"
}
control "dispatch" lower=0 {
index "a" { in "feasible_links" }
index "i" { in "feasible_links" }
index "g" { in "feasible_links" }
index "b" { in "feasible_links" }
}
constraint "dispatch_capacity" {
index "a" { in "feasible_links" }
index "i" { in "feasible_links" }
index "g" { in "feasible_links" }
index "b" { in "feasible_links" }
expression {
dispatch[a,i,g,b] <= capacity_mw[a,i,g,b]
}
}
constraint "priority_floor" {
index "a" { in "priority_links" }
index "i" { in "priority_links" }
index "g" { in "priority_links" }
index "b" { in "priority_links" }
expression {
dispatch[a,i,g,b] >= priority_floor_mw[a,i,g,b]
}
}
minimize "tuple_membership_tracer" { 0 }
}
scenario "NodalAllocationDay" {
use "NodalAllocation"
}