Skip to content

Commit

Permalink
Exclude assets with unit_commitment = false for constraints without u…
Browse files Browse the repository at this point in the history
…nit_commitment
  • Loading branch information
abelsiqueira committed Dec 13, 2024
1 parent 7b87bf2 commit f12df6f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/constraints/create.jl
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,9 @@ function _create_constraints_tables(connection)
LEFT JOIN asset
ON t_high.asset = asset.asset
WHERE
asset.type in ('producer', 'storage', 'conversion')",
asset.type in ('producer', 'storage', 'conversion')
AND NOT asset.unit_commitment
",
)

DuckDB.query(
Expand All @@ -280,6 +282,7 @@ function _create_constraints_tables(connection)
WHERE
asset.type in ('producer', 'storage', 'conversion')
AND asset.ramping
AND NOT asset.unit_commitment
AND asset.unit_commitment_method != 'basic'
",
)
Expand Down

0 comments on commit f12df6f

Please sign in to comment.