Skip to content

Commit

Permalink
update function call for onvar cost
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigomha committed Nov 5, 2024
1 parent e7ab9a4 commit a6aae9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/devices_models/devices/thermal_generation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ function onvar_cost(container::OptimizationContainer, cost::PSY.ThermalGeneratio
return _onvar_cost(container, PSY.get_variable(cost), d, t)
end

function _onvar_cost(cost_function::PSY.CostCurve{PSY.PiecewisePointCurve}, d::PSY.ThermalGen)
function _onvar_cost(::OptimizationContainer, cost_function::PSY.CostCurve{PSY.PiecewisePointCurve}, d::PSY.ThermalGen, ::Int)
# OnVariableCost is included in the Point itself for PiecewisePointCurve
return 0.0
end
Expand Down

0 comments on commit a6aae9d

Please sign in to comment.