|
1 | 1 | @testset "test new ogf" begin
|
2 | 2 | @testset "test wp new ogf" begin
|
3 | 3 | @testset "case 6 new ogf" begin
|
4 |
| - @info "Testing NEW OGF" |
| 4 | + @info "Testing OGF with compressor power proxy (linear)" |
5 | 5 | data = GasModels.parse_file("../test/data/matgas/case-6-no-power-limits.m")
|
6 |
| - result = run_new_ogf(data, WPGasModel, nlp_solver) |
| 6 | + result = run_ogf_comp_power_proxy(data, WPGasModel, nlp_solver) |
7 | 7 | @test result["termination_status"] in [LOCALLY_SOLVED, ALMOST_LOCALLY_SOLVED, OPTIMAL, :Suboptimal]
|
8 | 8 | @test isapprox(result["objective"], -253.683; atol = 1e-2)
|
9 | 9 | GasModels.make_si_units!(result["solution"])
|
10 | 10 | @test isapprox(result["solution"]["receipt"]["1"]["fg"], 123.6822; atol = 1e-2)
|
11 | 11 | end
|
12 | 12 |
|
13 | 13 | @testset "case 6 new ogf weymouth lin rel" begin
|
14 |
| - @info "Testing NEW OGF Linear Relaxation of Pipe Weymouth Physics" |
| 14 | + @info "Testing OGF with compressor power proxy Linear Relaxation of Pipe Weymouth Physics" |
15 | 15 | data = GasModels.parse_file("../test/data/matgas/case-6-no-power-limits.m")
|
16 |
| - result = run_new_ogf(data, LRWPGasModel, lp_solver) |
| 16 | + result = run_ogf_comp_power_proxy(data, LRWPGasModel, lp_solver) |
17 | 17 | @test result["termination_status"] in [LOCALLY_SOLVED, ALMOST_LOCALLY_SOLVED, OPTIMAL, :Suboptimal]
|
18 | 18 | @test isapprox(result["objective"], -260.00; atol = 1e-2)
|
19 | 19 | GasModels.make_si_units!(result["solution"])
|
|
22 | 22 |
|
23 | 23 |
|
24 | 24 | @testset "case 6 wp new ogf binding energy constraint" begin
|
25 |
| - @info "Testing NEW OGF Binding Energy Cosntraint" |
| 25 | + @info "Testing OGF with compressor power proxy Binding Energy Cosntraint" |
26 | 26 | data = GasModels.parse_file("../test/data/matgas/case-6.m")
|
27 |
| - result = run_new_ogf(data, WPGasModel, nlp_solver) |
| 27 | + result = run_ogf_comp_power_proxy(data, WPGasModel, nlp_solver) |
28 | 28 | @test result["termination_status"] in [LOCALLY_SOLVED, ALMOST_LOCALLY_SOLVED, OPTIMAL, :Suboptimal]
|
29 | 29 | @test isapprox(result["objective"], -237.718; atol = 1e-2)
|
30 | 30 | GasModels.make_si_units!(result["solution"])
|
31 | 31 | @test isapprox(result["solution"]["receipt"]["1"]["fg"], 97.33; atol = 1e-2)
|
32 | 32 | end
|
33 | 33 |
|
34 | 34 | @testset "case 6 wp new ogf elevation constraint" begin
|
35 |
| - @info "Testing NEW OGF Elevation Cosntraint" |
| 35 | + @info "Testing OGF with compressor power proxy Elevation Cosntraint" |
36 | 36 | data = GasModels.parse_file("../test/data/matgas/case-6-elevation.m")
|
37 |
| - result = run_new_ogf(data, WPGasModel, nlp_solver) |
| 37 | + result = run_ogf_comp_power_proxy(data, WPGasModel, nlp_solver) |
38 | 38 | @test result["termination_status"] in [LOCALLY_SOLVED, ALMOST_LOCALLY_SOLVED, OPTIMAL, :Suboptimal]
|
39 | 39 | @test isapprox(result["objective"], -245.251; atol = 1e-2)
|
40 | 40 | GasModels.make_si_units!(result["solution"])
|
|
0 commit comments