File tree 1 file changed +6
-0
lines changed
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -200,6 +200,9 @@ create sequence id start 1
200
200
201
201
create table cons_min_outgoing_flow_for_transport_flows_without_unit_commitment as
202
202
203
+ -- We want to check if the outgoing flows of an asset have transport flows
204
+ -- This information is gathered from the flow table
205
+ -- COALESCE is used to handle the case where there are no outgoing flows
203
206
with transport_flow_info as (
204
207
select
205
208
asset .asset ,
221
224
where
222
225
asset .type in (' producer' , ' storage' , ' conversion' )
223
226
and transport_flow_info .outgoing_flows_have_transport_flows
227
+ -- Assets with unit commitment already have a minimum outgoing flow constraints
224
228
and not asset .unit_commitment
225
229
;
226
230
@@ -232,6 +236,8 @@ create sequence id start 1
232
236
233
237
create table cons_min_incoming_flow_for_transport_flows as
234
238
239
+ -- Similar to the previous query, but for incoming flows
240
+ -- Also for assets with unit commitment
235
241
with transport_flow_info as (
236
242
select
237
243
asset .asset ,
You can’t perform that action at this time.
0 commit comments