Remove unused 'reactance' field

pull/33/merge
Alinson S. Xavier 2 years ago
parent b555f9885a
commit 58cc33ac69
Signed by: isoron
GPG Key ID: 0DA8E4B9E1109DCA

@ -281,7 +281,6 @@ This section describes the characteristics of transmission system, such as its t
| :--------------------- | :----------------------------------------------- | ------- | :------------: | :---: | :--------------------- | :----------------------------------------------- | ------- | :------------: | :---:
| `Source bus` | Identifier of the bus where the transmission line originates. | Required | No | Yes | `Source bus` | Identifier of the bus where the transmission line originates. | Required | No | Yes
| `Target bus` | Identifier of the bus where the transmission line reaches. | Required | No | Yes | `Target bus` | Identifier of the bus where the transmission line reaches. | Required | No | Yes
| `Reactance (ohms)` | Reactance of the transmission line (in ohms). | Required | No | Yes
| `Susceptance (S)` | Susceptance of the transmission line (in siemens). | Required | No | Yes | `Susceptance (S)` | Susceptance of the transmission line (in siemens). | Required | No | Yes
| `Normal flow limit (MW)` | Maximum amount of power (in MW) allowed to flow through the line when the system is in its regular, fully-operational state. | `+inf` | Yes | Yes | `Normal flow limit (MW)` | Maximum amount of power (in MW) allowed to flow through the line when the system is in its regular, fully-operational state. | `+inf` | Yes | Yes
| `Emergency flow limit (MW)` | Maximum amount of power (in MW) allowed to flow through the line when the system is in degraded state (for example, after the failure of another transmission line). | `+inf` | Y | Yes | `Emergency flow limit (MW)` | Maximum amount of power (in MW) allowed to flow through the line when the system is in degraded state (for example, after the failure of another transmission line). | `+inf` | Y | Yes
@ -295,7 +294,6 @@ This section describes the characteristics of transmission system, such as its t
"l1": { "l1": {
"Source bus": "b1", "Source bus": "b1",
"Target bus": "b2", "Target bus": "b2",
"Reactance (ohms)": 0.05917,
"Susceptance (S)": 29.49686, "Susceptance (S)": 29.49686,
"Normal flow limit (MW)": 15000.0, "Normal flow limit (MW)": 15000.0,
"Emergency flow limit (MW)": 20000.0, "Emergency flow limit (MW)": 20000.0,

@ -354,7 +354,6 @@ function _from_json(json; repair = true)::UnitCommitmentScenario
length(lines) + 1, length(lines) + 1,
name_to_bus[dict["Source bus"]], name_to_bus[dict["Source bus"]],
name_to_bus[dict["Target bus"]], name_to_bus[dict["Target bus"]],
scalar(dict["Reactance (ohms)"]),
scalar(dict["Susceptance (S)"]), scalar(dict["Susceptance (S)"]),
timeseries( timeseries(
dict["Normal flow limit (MW)"], dict["Normal flow limit (MW)"],

@ -56,7 +56,6 @@ mutable struct TransmissionLine
offset::Int offset::Int
source::Bus source::Bus
target::Bus target::Bus
reactance::Float64
susceptance::Float64 susceptance::Float64
normal_flow_limit::Vector{Float64} normal_flow_limit::Vector{Float64}
emergency_flow_limit::Vector{Float64} emergency_flow_limit::Vector{Float64}

@ -26,7 +26,6 @@ function instance_read_test()
@test sc.lines[5].name == "l5" @test sc.lines[5].name == "l5"
@test sc.lines[5].source.name == "b2" @test sc.lines[5].source.name == "b2"
@test sc.lines[5].target.name == "b5" @test sc.lines[5].target.name == "b5"
@test sc.lines[5].reactance 0.17388
@test sc.lines[5].susceptance 10.037550333 @test sc.lines[5].susceptance 10.037550333
@test sc.lines[5].normal_flow_limit == [1e8 for t in 1:4] @test sc.lines[5].normal_flow_limit == [1e8 for t in 1:4]
@test sc.lines[5].emergency_flow_limit == [1e8 for t in 1:4] @test sc.lines[5].emergency_flow_limit == [1e8 for t in 1:4]
@ -36,7 +35,6 @@ function instance_read_test()
@test sc.lines[1].name == "l1" @test sc.lines[1].name == "l1"
@test sc.lines[1].source.name == "b1" @test sc.lines[1].source.name == "b1"
@test sc.lines[1].target.name == "b2" @test sc.lines[1].target.name == "b2"
@test sc.lines[1].reactance 0.059170
@test sc.lines[1].susceptance 29.496860773945 @test sc.lines[1].susceptance 29.496860773945
@test sc.lines[1].normal_flow_limit == [300.0 for t in 1:4] @test sc.lines[1].normal_flow_limit == [300.0 for t in 1:4]
@test sc.lines[1].emergency_flow_limit == [400.0 for t in 1:4] @test sc.lines[1].emergency_flow_limit == [400.0 for t in 1:4]

Loading…
Cancel
Save