Skip to content

Commit

Permalink
Adjust LP files in OffsetConverter test
Browse files Browse the repository at this point in the history
  • Loading branch information
p-snft committed Nov 15, 2023
1 parent 195db65 commit 786585c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
12 changes: 6 additions & 6 deletions tests/lp_files/offsetconverter.lp
Original file line number Diff line number Diff line change
Expand Up @@ -47,32 +47,32 @@ c_e_NonConvexFlowBlock_status_nominal_constraint(gasBus_gasboiler_2)_:

c_u_NonConvexFlowBlock_min(gasBus_gasboiler_0_0)_:
-1 flow(gasBus_gasboiler_0_0)
+0.32 NonConvexFlowBlock_status_nominal(gasBus_gasboiler_0)
+0.32 NonConvexFlowBlock_status(gasBus_gasboiler_0)
<= 0

c_u_NonConvexFlowBlock_min(gasBus_gasboiler_0_1)_:
-1 flow(gasBus_gasboiler_0_1)
+0.32 NonConvexFlowBlock_status_nominal(gasBus_gasboiler_1)
+0.32 NonConvexFlowBlock_status(gasBus_gasboiler_1)
<= 0

c_u_NonConvexFlowBlock_min(gasBus_gasboiler_0_2)_:
-1 flow(gasBus_gasboiler_0_2)
+0.32 NonConvexFlowBlock_status_nominal(gasBus_gasboiler_2)
+0.32 NonConvexFlowBlock_status(gasBus_gasboiler_2)
<= 0

c_u_NonConvexFlowBlock_max(gasBus_gasboiler_0_0)_:
+1 flow(gasBus_gasboiler_0_0)
-1 NonConvexFlowBlock_status_nominal(gasBus_gasboiler_0)
-1 NonConvexFlowBlock_status(gasBus_gasboiler_0)
<= 0

c_u_NonConvexFlowBlock_max(gasBus_gasboiler_0_1)_:
+1 flow(gasBus_gasboiler_0_1)
-1 NonConvexFlowBlock_status_nominal(gasBus_gasboiler_1)
-1 NonConvexFlowBlock_status(gasBus_gasboiler_1)
<= 0

c_u_NonConvexFlowBlock_max(gasBus_gasboiler_0_2)_:
+1 flow(gasBus_gasboiler_0_2)
-1 NonConvexFlowBlock_status_nominal(gasBus_gasboiler_2)
-1 NonConvexFlowBlock_status(gasBus_gasboiler_2)
<= 0

c_e_OffsetConverterBlock_relation(gasboiler_0_0)_:
Expand Down
12 changes: 6 additions & 6 deletions tests/lp_files/offsetconverter_multi_period.lp
Original file line number Diff line number Diff line change
Expand Up @@ -147,37 +147,37 @@ c_u_NonConvexFlowBlock_max(gasboiler_thermalBus_2_5)_:
c_e_OffsetConverterBlock_relation(gasboiler_gasBus_thermalBus_0_0)_:
+0.9 flow(gasBus_gasboiler_0_0)
-1 flow(gasboiler_thermalBus_0_0)
-17 NonConvexFlowBlock_status_nominal(gasboiler_thermalBus_0)
-17 NonConvexFlowBlock_status(gasboiler_thermalBus_0)
= 0

c_e_OffsetConverterBlock_relation(gasboiler_gasBus_thermalBus_0_1)_:
+0.9 flow(gasBus_gasboiler_0_1)
-1 flow(gasboiler_thermalBus_0_1)
-17 NonConvexFlowBlock_status_nominal(gasboiler_thermalBus_1)
-17 NonConvexFlowBlock_status(gasboiler_thermalBus_1)
= 0

c_e_OffsetConverterBlock_relation(gasboiler_gasBus_thermalBus_1_2)_:
+0.9 flow(gasBus_gasboiler_1_2)
-1 flow(gasboiler_thermalBus_1_2)
-17 NonConvexFlowBlock_status_nominal(gasboiler_thermalBus_2)
-17 NonConvexFlowBlock_status(gasboiler_thermalBus_2)
= 0

c_e_OffsetConverterBlock_relation(gasboiler_gasBus_thermalBus_1_3)_:
+0.9 flow(gasBus_gasboiler_1_3)
-1 flow(gasboiler_thermalBus_1_3)
-17 NonConvexFlowBlock_status_nominal(gasboiler_thermalBus_3)
-17 NonConvexFlowBlock_status(gasboiler_thermalBus_3)
= 0

c_e_OffsetConverterBlock_relation(gasboiler_gasBus_thermalBus_2_4)_:
+0.9 flow(gasBus_gasboiler_2_4)
-1 flow(gasboiler_thermalBus_2_4)
-17 NonConvexFlowBlock_status_nominal(gasboiler_thermalBus_4)
-17 NonConvexFlowBlock_status(gasboiler_thermalBus_4)
= 0

c_e_OffsetConverterBlock_relation(gasboiler_gasBus_thermalBus_2_5)_:
+0.9 flow(gasBus_gasboiler_2_5)
-1 flow(gasboiler_thermalBus_2_5)
-17 NonConvexFlowBlock_status_nominal(gasboiler_thermalBus_5)
-17 NonConvexFlowBlock_status(gasboiler_thermalBus_5)
= 0

bounds
Expand Down
2 changes: 1 addition & 1 deletion tests/lp_files/offsetconverter_nonconvex.lp
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ c_e_OffsetConverterBlock_relation(diesel_genset_bus_diesel_bus_electricity_0_1)_
c_e_OffsetConverterBlock_relation(diesel_genset_bus_diesel_bus_electricity_0_2)_:
+0.5 flow(bus_diesel_diesel_genset_0_2)
-1 flow(diesel_genset_bus_electricity_0_2)
+2.5 NonConvexFlowBlock_status_nominal(diesel_genset_bus_electricity_2)
+2.5 NonConvexFlowBlock_status(diesel_genset_bus_electricity_2)
= 0

bounds
Expand Down

0 comments on commit 786585c

Please sign in to comment.