Skip to content

Commit

Permalink
Update lp files
Browse files Browse the repository at this point in the history
  • Loading branch information
fwitte committed May 28, 2024
1 parent f3423e8 commit faf3c86
Show file tree
Hide file tree
Showing 2 changed files with 101 additions and 101 deletions.
96 changes: 48 additions & 48 deletions tests/lp_files/offsetconverter_nonconvex.lp
Original file line number Diff line number Diff line change
@@ -1,47 +1,47 @@
\* Source Pyomo model name=Model *\

min
min
objective:
0 ONE_VAR_CONSTANT
+0 ONE_VAR_CONSTANT

s.t.

c_e_BusBlock_balance(bus_electricity_0_0)_:
1 flow(diesel_genset_bus_electricity_0_0)
c_e_BusBlock_balance(bus_diesel_0_0)_:
+1 flow(bus_diesel_diesel_genset_0_0)
= 0

c_e_BusBlock_balance(bus_electricity_0_1)_:
1 flow(diesel_genset_bus_electricity_0_1)
c_e_BusBlock_balance(bus_diesel_0_1)_:
+1 flow(bus_diesel_diesel_genset_0_1)
= 0

c_e_BusBlock_balance(bus_electricity_0_2)_:
1 flow(diesel_genset_bus_electricity_0_2)
c_e_BusBlock_balance(bus_diesel_0_2)_:
+1 flow(bus_diesel_diesel_genset_0_2)
= 0

c_e_BusBlock_balance(bus_diesel_0_0)_:
1 flow(bus_diesel_diesel_genset_0_0)
c_e_BusBlock_balance(bus_electricity_0_0)_:
+1 flow(diesel_genset_bus_electricity_0_0)
= 0

c_e_BusBlock_balance(bus_diesel_0_1)_:
1 flow(bus_diesel_diesel_genset_0_1)
c_e_BusBlock_balance(bus_electricity_0_1)_:
+1 flow(diesel_genset_bus_electricity_0_1)
= 0

c_e_BusBlock_balance(bus_diesel_0_2)_:
1 flow(bus_diesel_diesel_genset_0_2)
c_e_BusBlock_balance(bus_electricity_0_2)_:
+1 flow(diesel_genset_bus_electricity_0_2)
= 0

c_e_NonConvexFlowBlock_status_nominal_constraint(diesel_genset_bus_electricity_0)_:
1 NonConvexFlowBlock_status_nominal(diesel_genset_bus_electricity_0)
+1 NonConvexFlowBlock_status_nominal(diesel_genset_bus_electricity_0)
-100 NonConvexFlowBlock_status(diesel_genset_bus_electricity_0)
= 0

c_e_NonConvexFlowBlock_status_nominal_constraint(diesel_genset_bus_electricity_1)_:
1 NonConvexFlowBlock_status_nominal(diesel_genset_bus_electricity_1)
+1 NonConvexFlowBlock_status_nominal(diesel_genset_bus_electricity_1)
-100 NonConvexFlowBlock_status(diesel_genset_bus_electricity_1)
= 0

c_e_NonConvexFlowBlock_status_nominal_constraint(diesel_genset_bus_electricity_2)_:
1 NonConvexFlowBlock_status_nominal(diesel_genset_bus_electricity_2)
+1 NonConvexFlowBlock_status_nominal(diesel_genset_bus_electricity_2)
-100 NonConvexFlowBlock_status(diesel_genset_bus_electricity_2)
= 0

Expand All @@ -61,54 +61,54 @@ c_u_NonConvexFlowBlock_min(diesel_genset_bus_electricity_0_2)_:
<= 0

c_u_NonConvexFlowBlock_max(diesel_genset_bus_electricity_0_0)_:
1 flow(diesel_genset_bus_electricity_0_0)
+1 flow(diesel_genset_bus_electricity_0_0)
-1 NonConvexFlowBlock_status_nominal(diesel_genset_bus_electricity_0)
<= 0

c_u_NonConvexFlowBlock_max(diesel_genset_bus_electricity_0_1)_:
1 flow(diesel_genset_bus_electricity_0_1)
+1 flow(diesel_genset_bus_electricity_0_1)
-1 NonConvexFlowBlock_status_nominal(diesel_genset_bus_electricity_1)
<= 0

c_u_NonConvexFlowBlock_max(diesel_genset_bus_electricity_0_2)_:
1 flow(diesel_genset_bus_electricity_0_2)
+1 flow(diesel_genset_bus_electricity_0_2)
-1 NonConvexFlowBlock_status_nominal(diesel_genset_bus_electricity_2)
<= 0

c_e_OffsetConverterBlock_relation(diesel_genset_bus_diesel_bus_electricity_0_0)_:
+0.5 flow(bus_diesel_diesel_genset_0_0)
-1 flow(diesel_genset_bus_electricity_0_0)
+2.5 NonConvexFlowBlock_status_nominal(diesel_genset_bus_electricity_0)
c_e_OffsetConverterBlock_relation(diesel_genset_bus_electricity_bus_diesel_0_0)_:
-1 flow(bus_diesel_diesel_genset_0_0)
+2.410714285714285 flow(diesel_genset_bus_electricity_0_0)
+0.08928571428571486 NonConvexFlowBlock_status_nominal(diesel_genset_bus_electricity_0)
= 0

c_e_OffsetConverterBlock_relation(diesel_genset_bus_diesel_bus_electricity_0_1)_:
+0.5 flow(bus_diesel_diesel_genset_0_1)
-1 flow(diesel_genset_bus_electricity_0_1)
+2.5 NonConvexFlowBlock_status_nominal(diesel_genset_bus_electricity_1)
c_e_OffsetConverterBlock_relation(diesel_genset_bus_electricity_bus_diesel_0_1)_:
-1 flow(bus_diesel_diesel_genset_0_1)
+2.410714285714285 flow(diesel_genset_bus_electricity_0_1)
+0.08928571428571486 NonConvexFlowBlock_status_nominal(diesel_genset_bus_electricity_1)
= 0

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)
c_e_OffsetConverterBlock_relation(diesel_genset_bus_electricity_bus_diesel_0_2)_:
-1 flow(bus_diesel_diesel_genset_0_2)
+2.410714285714285 flow(diesel_genset_bus_electricity_0_2)
+0.08928571428571486 NonConvexFlowBlock_status_nominal(diesel_genset_bus_electricity_2)
= 0

bounds
1 <= ONE_VAR_CONSTANT <= 1
0 <= flow(diesel_genset_bus_electricity_0_0) <= 100
0 <= flow(diesel_genset_bus_electricity_0_1) <= 100
0 <= flow(diesel_genset_bus_electricity_0_2) <= 100
0 <= flow(bus_diesel_diesel_genset_0_0) <= +inf
0 <= flow(bus_diesel_diesel_genset_0_1) <= +inf
0 <= flow(bus_diesel_diesel_genset_0_2) <= +inf
0 <= NonConvexFlowBlock_status_nominal(diesel_genset_bus_electricity_0) <= +inf
0 <= NonConvexFlowBlock_status(diesel_genset_bus_electricity_0) <= 1
0 <= NonConvexFlowBlock_status_nominal(diesel_genset_bus_electricity_1) <= +inf
0 <= NonConvexFlowBlock_status(diesel_genset_bus_electricity_1) <= 1
0 <= NonConvexFlowBlock_status_nominal(diesel_genset_bus_electricity_2) <= +inf
0 <= NonConvexFlowBlock_status(diesel_genset_bus_electricity_2) <= 1
1 <= ONE_VAR_CONSTANT <= 1
0 <= flow(bus_diesel_diesel_genset_0_0) <= +inf
0 <= flow(bus_diesel_diesel_genset_0_1) <= +inf
0 <= flow(bus_diesel_diesel_genset_0_2) <= +inf
0 <= flow(diesel_genset_bus_electricity_0_0) <= 100
0 <= flow(diesel_genset_bus_electricity_0_1) <= 100
0 <= flow(diesel_genset_bus_electricity_0_2) <= 100
0 <= NonConvexFlowBlock_status_nominal(diesel_genset_bus_electricity_0) <= +inf
0 <= NonConvexFlowBlock_status_nominal(diesel_genset_bus_electricity_1) <= +inf
0 <= NonConvexFlowBlock_status_nominal(diesel_genset_bus_electricity_2) <= +inf
0 <= NonConvexFlowBlock_status(diesel_genset_bus_electricity_0) <= 1
0 <= NonConvexFlowBlock_status(diesel_genset_bus_electricity_1) <= 1
0 <= NonConvexFlowBlock_status(diesel_genset_bus_electricity_2) <= 1
binary
NonConvexFlowBlock_status(diesel_genset_bus_electricity_0)
NonConvexFlowBlock_status(diesel_genset_bus_electricity_1)
NonConvexFlowBlock_status(diesel_genset_bus_electricity_2)
NonConvexFlowBlock_status(diesel_genset_bus_electricity_0)
NonConvexFlowBlock_status(diesel_genset_bus_electricity_1)
NonConvexFlowBlock_status(diesel_genset_bus_electricity_2)
end
106 changes: 53 additions & 53 deletions tests/lp_files/offsetconverter_nonconvex_investment.lp
Original file line number Diff line number Diff line change
@@ -1,41 +1,41 @@
\* Source Pyomo model name=Model *\

min
min
objective:
100 InvestNonConvexFlowBlock_invest(diesel_genset_bus_electricity_0)
+100 InvestNonConvexFlowBlock_invest(diesel_genset_bus_electricity_0)

s.t.

c_e_BusBlock_balance(bus_diesel_0_0)_:
1 flow(bus_diesel_diesel_genset_0_0)
+1 flow(bus_diesel_diesel_genset_0_0)
= 0

c_e_BusBlock_balance(bus_diesel_0_1)_:
1 flow(bus_diesel_diesel_genset_0_1)
+1 flow(bus_diesel_diesel_genset_0_1)
= 0

c_e_BusBlock_balance(bus_diesel_0_2)_:
1 flow(bus_diesel_diesel_genset_0_2)
+1 flow(bus_diesel_diesel_genset_0_2)
= 0

c_e_BusBlock_balance(bus_electricity_0_0)_:
1 flow(diesel_genset_bus_electricity_0_0)
+1 flow(diesel_genset_bus_electricity_0_0)
= 0

c_e_BusBlock_balance(bus_electricity_0_1)_:
1 flow(diesel_genset_bus_electricity_0_1)
+1 flow(diesel_genset_bus_electricity_0_1)
= 0

c_e_BusBlock_balance(bus_electricity_0_2)_:
1 flow(diesel_genset_bus_electricity_0_2)
+1 flow(diesel_genset_bus_electricity_0_2)
= 0

c_l_InvestNonConvexFlowBlock_minimum_investment(diesel_genset_bus_electricity_0)_:
1 InvestNonConvexFlowBlock_invest(diesel_genset_bus_electricity_0)
+1 InvestNonConvexFlowBlock_invest(diesel_genset_bus_electricity_0)
>= 0

c_u_InvestNonConvexFlowBlock_maximum_investment(diesel_genset_bus_electricity_0)_:
1 InvestNonConvexFlowBlock_invest(diesel_genset_bus_electricity_0)
+1 InvestNonConvexFlowBlock_invest(diesel_genset_bus_electricity_0)
<= 1234

c_u_InvestNonConvexFlowBlock_min(diesel_genset_bus_electricity_0_0)_:
Expand All @@ -54,102 +54,102 @@ c_u_InvestNonConvexFlowBlock_min(diesel_genset_bus_electricity_0_2)_:
<= 0

c_u_InvestNonConvexFlowBlock_max(diesel_genset_bus_electricity_0_0)_:
1 flow(diesel_genset_bus_electricity_0_0)
+1 flow(diesel_genset_bus_electricity_0_0)
-1 InvestNonConvexFlowBlock_status_nominal(diesel_genset_bus_electricity_0)
<= 0

c_u_InvestNonConvexFlowBlock_max(diesel_genset_bus_electricity_0_1)_:
1 flow(diesel_genset_bus_electricity_0_1)
+1 flow(diesel_genset_bus_electricity_0_1)
-1 InvestNonConvexFlowBlock_status_nominal(diesel_genset_bus_electricity_1)
<= 0

c_u_InvestNonConvexFlowBlock_max(diesel_genset_bus_electricity_0_2)_:
1 flow(diesel_genset_bus_electricity_0_2)
+1 flow(diesel_genset_bus_electricity_0_2)
-1 InvestNonConvexFlowBlock_status_nominal(diesel_genset_bus_electricity_2)
<= 0

c_u_InvestNonConvexFlowBlock_invest_nc_one(diesel_genset_bus_electricity_0_0)_:
1 InvestNonConvexFlowBlock_status_nominal(diesel_genset_bus_electricity_0)
+1 InvestNonConvexFlowBlock_status_nominal(diesel_genset_bus_electricity_0)
-1234 InvestNonConvexFlowBlock_status(diesel_genset_bus_electricity_0)
<= 0

c_u_InvestNonConvexFlowBlock_invest_nc_one(diesel_genset_bus_electricity_0_1)_:
1 InvestNonConvexFlowBlock_status_nominal(diesel_genset_bus_electricity_1)
+1 InvestNonConvexFlowBlock_status_nominal(diesel_genset_bus_electricity_1)
-1234 InvestNonConvexFlowBlock_status(diesel_genset_bus_electricity_1)
<= 0

c_u_InvestNonConvexFlowBlock_invest_nc_one(diesel_genset_bus_electricity_0_2)_:
1 InvestNonConvexFlowBlock_status_nominal(diesel_genset_bus_electricity_2)
+1 InvestNonConvexFlowBlock_status_nominal(diesel_genset_bus_electricity_2)
-1234 InvestNonConvexFlowBlock_status(diesel_genset_bus_electricity_2)
<= 0

c_u_InvestNonConvexFlowBlock_invest_nc_two(diesel_genset_bus_electricity_0_0)_:
-1 InvestNonConvexFlowBlock_invest(diesel_genset_bus_electricity_0)
1 InvestNonConvexFlowBlock_status_nominal(diesel_genset_bus_electricity_0)
+1 InvestNonConvexFlowBlock_status_nominal(diesel_genset_bus_electricity_0)
<= 0

c_u_InvestNonConvexFlowBlock_invest_nc_two(diesel_genset_bus_electricity_0_1)_:
-1 InvestNonConvexFlowBlock_invest(diesel_genset_bus_electricity_0)
1 InvestNonConvexFlowBlock_status_nominal(diesel_genset_bus_electricity_1)
+1 InvestNonConvexFlowBlock_status_nominal(diesel_genset_bus_electricity_1)
<= 0

c_u_InvestNonConvexFlowBlock_invest_nc_two(diesel_genset_bus_electricity_0_2)_:
-1 InvestNonConvexFlowBlock_invest(diesel_genset_bus_electricity_0)
1 InvestNonConvexFlowBlock_status_nominal(diesel_genset_bus_electricity_2)
+1 InvestNonConvexFlowBlock_status_nominal(diesel_genset_bus_electricity_2)
<= 0

c_u_InvestNonConvexFlowBlock_invest_nc_three(diesel_genset_bus_electricity_0_0)_:
1 InvestNonConvexFlowBlock_invest(diesel_genset_bus_electricity_0)
+1 InvestNonConvexFlowBlock_invest(diesel_genset_bus_electricity_0)
-1 InvestNonConvexFlowBlock_status_nominal(diesel_genset_bus_electricity_0)
1234 InvestNonConvexFlowBlock_status(diesel_genset_bus_electricity_0)
+1234 InvestNonConvexFlowBlock_status(diesel_genset_bus_electricity_0)
<= 1234

c_u_InvestNonConvexFlowBlock_invest_nc_three(diesel_genset_bus_electricity_0_1)_:
1 InvestNonConvexFlowBlock_invest(diesel_genset_bus_electricity_0)
+1 InvestNonConvexFlowBlock_invest(diesel_genset_bus_electricity_0)
-1 InvestNonConvexFlowBlock_status_nominal(diesel_genset_bus_electricity_1)
1234 InvestNonConvexFlowBlock_status(diesel_genset_bus_electricity_1)
+1234 InvestNonConvexFlowBlock_status(diesel_genset_bus_electricity_1)
<= 1234

c_u_InvestNonConvexFlowBlock_invest_nc_three(diesel_genset_bus_electricity_0_2)_:
1 InvestNonConvexFlowBlock_invest(diesel_genset_bus_electricity_0)
+1 InvestNonConvexFlowBlock_invest(diesel_genset_bus_electricity_0)
-1 InvestNonConvexFlowBlock_status_nominal(diesel_genset_bus_electricity_2)
1234 InvestNonConvexFlowBlock_status(diesel_genset_bus_electricity_2)
+1234 InvestNonConvexFlowBlock_status(diesel_genset_bus_electricity_2)
<= 1234

c_e_OffsetConverterBlock_relation(diesel_genset_bus_diesel_bus_electricity_0_0)_:
+0.5 flow(bus_diesel_diesel_genset_0_0)
-1 flow(diesel_genset_bus_electricity_0_0)
+2.5 InvestNonConvexFlowBlock_status_nominal(diesel_genset_bus_electricity_0)
c_e_OffsetConverterBlock_relation(diesel_genset_bus_electricity_bus_diesel_0_0)_:
-1 flow(bus_diesel_diesel_genset_0_0)
+2.410714285714285 flow(diesel_genset_bus_electricity_0_0)
+0.08928571428571486 InvestNonConvexFlowBlock_status_nominal(diesel_genset_bus_electricity_0)
= 0

c_e_OffsetConverterBlock_relation(diesel_genset_bus_diesel_bus_electricity_0_1)_:
+0.5 flow(bus_diesel_diesel_genset_0_1)
-1 flow(diesel_genset_bus_electricity_0_1)
+2.5 InvestNonConvexFlowBlock_status_nominal(diesel_genset_bus_electricity_1)
c_e_OffsetConverterBlock_relation(diesel_genset_bus_electricity_bus_diesel_0_1)_:
-1 flow(bus_diesel_diesel_genset_0_1)
+2.410714285714285 flow(diesel_genset_bus_electricity_0_1)
+0.08928571428571486 InvestNonConvexFlowBlock_status_nominal(diesel_genset_bus_electricity_1)
= 0

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 InvestNonConvexFlowBlock_status_nominal(diesel_genset_bus_electricity_2)
c_e_OffsetConverterBlock_relation(diesel_genset_bus_electricity_bus_diesel_0_2)_:
-1 flow(bus_diesel_diesel_genset_0_2)
+2.410714285714285 flow(diesel_genset_bus_electricity_0_2)
+0.08928571428571486 InvestNonConvexFlowBlock_status_nominal(diesel_genset_bus_electricity_2)
= 0

bounds
0 <= InvestNonConvexFlowBlock_invest(diesel_genset_bus_electricity_0) <= 1234
0 <= flow(bus_diesel_diesel_genset_0_0) <= +inf
0 <= flow(bus_diesel_diesel_genset_0_1) <= +inf
0 <= flow(bus_diesel_diesel_genset_0_2) <= +inf
0 <= flow(diesel_genset_bus_electricity_0_0) <= +inf
0 <= flow(diesel_genset_bus_electricity_0_1) <= +inf
0 <= flow(diesel_genset_bus_electricity_0_2) <= +inf
0 <= InvestNonConvexFlowBlock_status_nominal(diesel_genset_bus_electricity_0) <= +inf
0 <= InvestNonConvexFlowBlock_status_nominal(diesel_genset_bus_electricity_1) <= +inf
0 <= InvestNonConvexFlowBlock_status_nominal(diesel_genset_bus_electricity_2) <= +inf
0 <= InvestNonConvexFlowBlock_status(diesel_genset_bus_electricity_0) <= 1
0 <= InvestNonConvexFlowBlock_status(diesel_genset_bus_electricity_1) <= 1
0 <= InvestNonConvexFlowBlock_status(diesel_genset_bus_electricity_2) <= 1
0 <= InvestNonConvexFlowBlock_invest(diesel_genset_bus_electricity_0) <= 1234
0 <= flow(bus_diesel_diesel_genset_0_0) <= +inf
0 <= flow(bus_diesel_diesel_genset_0_1) <= +inf
0 <= flow(bus_diesel_diesel_genset_0_2) <= +inf
0 <= flow(diesel_genset_bus_electricity_0_0) <= +inf
0 <= flow(diesel_genset_bus_electricity_0_1) <= +inf
0 <= flow(diesel_genset_bus_electricity_0_2) <= +inf
0 <= InvestNonConvexFlowBlock_status_nominal(diesel_genset_bus_electricity_0) <= +inf
0 <= InvestNonConvexFlowBlock_status_nominal(diesel_genset_bus_electricity_1) <= +inf
0 <= InvestNonConvexFlowBlock_status_nominal(diesel_genset_bus_electricity_2) <= +inf
0 <= InvestNonConvexFlowBlock_status(diesel_genset_bus_electricity_0) <= 1
0 <= InvestNonConvexFlowBlock_status(diesel_genset_bus_electricity_1) <= 1
0 <= InvestNonConvexFlowBlock_status(diesel_genset_bus_electricity_2) <= 1
binary
InvestNonConvexFlowBlock_status(diesel_genset_bus_electricity_0)
InvestNonConvexFlowBlock_status(diesel_genset_bus_electricity_1)
InvestNonConvexFlowBlock_status(diesel_genset_bus_electricity_2)
InvestNonConvexFlowBlock_status(diesel_genset_bus_electricity_0)
InvestNonConvexFlowBlock_status(diesel_genset_bus_electricity_1)
InvestNonConvexFlowBlock_status(diesel_genset_bus_electricity_2)
end

0 comments on commit faf3c86

Please sign in to comment.