Skip to content

Commit

Permalink
add expressions for all formulations
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigomha committed Oct 17, 2024
1 parent 3d74a48 commit d20061c
Show file tree
Hide file tree
Showing 2 changed files with 231 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ function construct_device!(
)

add_expressions!(container, ProductionCostExpression, devices, model)
add_expressions!(container, FuelConsumptionExpression, devices, model)

add_to_expression!(
container,
Expand All @@ -95,6 +96,13 @@ function construct_device!(
model,
network_model,
)
add_to_expression!(
container,
FuelConsumptionExpression,
ActivePowerVariable,
devices,
model,
)
add_feedforward_arguments!(container, model, devices)
return
end
Expand Down Expand Up @@ -193,6 +201,7 @@ function construct_device!(
)

add_expressions!(container, ProductionCostExpression, devices, model)
add_expressions!(container, FuelConsumptionExpression, devices, model)

add_to_expression!(
container,
Expand All @@ -210,6 +219,13 @@ function construct_device!(
model,
network_model,
)
add_to_expression!(
container,
FuelConsumptionExpression,
ActivePowerVariable,
devices,
model,
)

add_feedforward_arguments!(container, model, devices)
return
Expand Down Expand Up @@ -307,6 +323,7 @@ function construct_device!(
)

add_expressions!(container, ProductionCostExpression, devices, model)
add_expressions!(container, FuelConsumptionExpression, devices, model)

add_to_expression!(
container,
Expand All @@ -324,6 +341,13 @@ function construct_device!(
model,
network_model,
)
add_to_expression!(
container,
FuelConsumptionExpression,
ActivePowerVariable,
devices,
model,
)

add_feedforward_arguments!(container, model, devices)
return
Expand Down Expand Up @@ -419,6 +443,7 @@ function construct_device!(
)

add_expressions!(container, ProductionCostExpression, devices, model)
add_expressions!(container, FuelConsumptionExpression, devices, model)

add_to_expression!(
container,
Expand All @@ -436,6 +461,13 @@ function construct_device!(
model,
network_model,
)
add_to_expression!(
container,
FuelConsumptionExpression,
ActivePowerVariable,
devices,
model,
)

add_feedforward_arguments!(container, model, devices)
return
Expand Down Expand Up @@ -524,6 +556,7 @@ function construct_device!(
)

add_expressions!(container, ProductionCostExpression, devices, model)
add_expressions!(container, FuelConsumptionExpression, devices, model)

add_to_expression!(
container,
Expand All @@ -541,6 +574,13 @@ function construct_device!(
model,
network_model,
)
add_to_expression!(
container,
FuelConsumptionExpression,
ActivePowerVariable,
devices,
model,
)

add_feedforward_arguments!(container, model, devices)
return
Expand Down Expand Up @@ -618,6 +658,7 @@ function construct_device!(
)

add_expressions!(container, ProductionCostExpression, devices, model)
add_expressions!(container, FuelConsumptionExpression, devices, model)

add_to_expression!(
container,
Expand All @@ -635,6 +676,13 @@ function construct_device!(
model,
network_model,
)
add_to_expression!(
container,
FuelConsumptionExpression,
ActivePowerVariable,
devices,
model,
)

add_feedforward_arguments!(container, model, devices)
return
Expand Down Expand Up @@ -711,6 +759,7 @@ function construct_device!(
)

add_expressions!(container, ProductionCostExpression, devices, model)
add_expressions!(container, FuelConsumptionExpression, devices, model)

add_to_expression!(
container,
Expand All @@ -728,6 +777,13 @@ function construct_device!(
model,
network_model,
)
add_to_expression!(
container,
FuelConsumptionExpression,
ActivePowerVariable,
devices,
model,
)

add_feedforward_arguments!(container, model, devices)
return
Expand Down Expand Up @@ -803,7 +859,6 @@ function construct_device!(
)

add_expressions!(container, ProductionCostExpression, devices, model)

add_expressions!(container, FuelConsumptionExpression, devices, model)

add_to_expression!(
Expand Down Expand Up @@ -931,6 +986,7 @@ function construct_device!(
)

add_expressions!(container, ProductionCostExpression, devices, model)
add_expressions!(container, FuelConsumptionExpression, devices, model)

add_to_expression!(
container,
Expand All @@ -948,6 +1004,16 @@ function construct_device!(
model,
network_model,
)
#TODO: Implement for AbovePowerMinimum
#=
add_to_expression!(
container,
FuelConsumptionExpression,
PowerAboveMinimumVariable,,
devices,
model,
)
=#

add_feedforward_arguments!(container, model, devices)
return
Expand Down Expand Up @@ -1073,6 +1139,7 @@ function construct_device!(
)

add_expressions!(container, ProductionCostExpression, devices, model)
add_expressions!(container, FuelConsumptionExpression, devices, model)

add_to_expression!(
container,
Expand All @@ -1090,6 +1157,16 @@ function construct_device!(
model,
network_model,
)
#TODO: Implement for AbovePowerMinimum
#=
add_to_expression!(
container,
FuelConsumptionExpression,
PowerAboveMinimumVariable,,
devices,
model,
)
=#

add_feedforward_arguments!(container, model, devices)
return
Expand Down Expand Up @@ -1213,6 +1290,7 @@ function construct_device!(
)

add_expressions!(container, ProductionCostExpression, devices, model)
add_expressions!(container, FuelConsumptionExpression, devices, model)

add_to_expression!(
container,
Expand All @@ -1230,6 +1308,16 @@ function construct_device!(
model,
network_model,
)
#TODO: Implement for AbovePowerMinimum
#=
add_to_expression!(
container,
FuelConsumptionExpression,
PowerAboveMinimumVariable,,
devices,
model,
)
=#

add_feedforward_arguments!(container, model, devices)
return
Expand Down Expand Up @@ -1337,6 +1425,7 @@ function construct_device!(
)

add_expressions!(container, ProductionCostExpression, devices, model)
add_expressions!(container, FuelConsumptionExpression, devices, model)

add_to_expression!(
container,
Expand All @@ -1354,6 +1443,16 @@ function construct_device!(
model,
network_model,
)
#TODO: Implement for AbovePowerMinimum
#=
add_to_expression!(
container,
FuelConsumptionExpression,
PowerAboveMinimumVariable,,
devices,
model,
)
=#
add_feedforward_arguments!(container, model, devices)
return
end
Expand Down Expand Up @@ -1456,6 +1555,7 @@ function construct_device!(
)

add_expressions!(container, ProductionCostExpression, devices, model)
add_expressions!(container, FuelConsumptionExpression, devices, model)

add_to_expression!(
container,
Expand All @@ -1473,6 +1573,16 @@ function construct_device!(
model,
network_model,
)
#TODO: Implement for AbovePowerMinimum
#=
add_to_expression!(
container,
FuelConsumptionExpression,
PowerAboveMinimumVariable,,
devices,
model,
)
=#

add_feedforward_arguments!(container, model, devices)
return
Expand Down Expand Up @@ -1576,6 +1686,7 @@ function construct_device!(
)

add_expressions!(container, ProductionCostExpression, devices, model)
add_expressions!(container, FuelConsumptionExpression, devices, model)

add_to_expression!(
container,
Expand All @@ -1593,6 +1704,16 @@ function construct_device!(
model,
network_model,
)
#TODO: Implement for AbovePowerMinimum
#=
add_to_expression!(
container,
FuelConsumptionExpression,
PowerAboveMinimumVariable,,
devices,
model,
)
=#
add_feedforward_arguments!(container, model, devices)
return
end
Expand Down Expand Up @@ -1672,6 +1793,7 @@ function construct_device!(
)

add_expressions!(container, ProductionCostExpression, devices, model)
add_expressions!(container, FuelConsumptionExpression, devices, model)

add_to_expression!(
container,
Expand Down Expand Up @@ -1705,6 +1827,16 @@ function construct_device!(
model,
network_model,
)
#TODO: Implement for AbovePowerMinimum
#=
add_to_expression!(
container,
FuelConsumptionExpression,
PowerAboveMinimumVariable,,
devices,
model,
)
=#
return
end

Expand Down Expand Up @@ -1789,6 +1921,7 @@ function construct_device!(
initial_conditions!(container, devices, ThermalCompactDispatch())

add_expressions!(container, ProductionCostExpression, devices, model)
add_expressions!(container, FuelConsumptionExpression, devices, model)

add_to_expression!(
container,
Expand All @@ -1806,6 +1939,16 @@ function construct_device!(
model,
network_model,
)
#TODO: Implement for AbovePowerMinimum
#=
add_to_expression!(
container,
FuelConsumptionExpression,
PowerAboveMinimumVariable,,
devices,
model,
)
=#
return
end

Expand Down
Loading

0 comments on commit d20061c

Please sign in to comment.