-
Notifications
You must be signed in to change notification settings - Fork 0
/
def.jl
76 lines (60 loc) · 1.04 KB
/
def.jl
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
# definitions of the data type
type busData
ID :: Int64
Name :: String
gen :: Array{Any,1}
Vmax :: Float64
Vmin :: Float64
Pd :: Float64
Qd :: Float64
gsh :: Float64
bsh :: Float64
end
type genData
ID :: Any
Name :: Any
Loc :: Int64
cn :: Array{Int64,1}
cParams :: Dict{Any,Any}
Pmax :: Float64
Pmin :: Float64
Qmax :: Float64
Qmin :: Float64
alpha :: Float64
end
type branchData
From :: Int64
To :: Int64
CKT :: Any
ID :: Any
revID :: Any
r :: Float64
x :: Float64
g :: Float64
b :: Float64
bc :: Float64
t :: Float64
zeroImpe :: Bool
tau :: Float64
tauprime :: Float64
thetatr :: Float64
end
type fixedData
baseMVA :: Float64
busList :: Array{Any,1}
busDList :: Dict{Any,Any}
genList :: Array{Any,1}
genDList :: Dict{Any,Any}
brList :: Array{Any,1}
brListSingle :: Array{Any,1}
brDList :: Dict{Any,Any}
end
type contingencyData
ID :: Int64
Type :: String
Loc :: Array{Any,1}
end
type uncertainData
contList :: Array{Int64,1}
contDList :: Dict{Any,Any}
end