diff --git a/src/devices_models/devices/common/objective_function/market_bid.jl b/src/devices_models/devices/common/objective_function/market_bid.jl index 04ad299ce..962d0816b 100644 --- a/src/devices_models/devices/common/objective_function/market_bid.jl +++ b/src/devices_models/devices/common/objective_function/market_bid.jl @@ -476,7 +476,7 @@ function _add_variable_cost_to_objective!( initial_time = get_initial_time(container) incremental_cost_curves = PSY.get_incremental_offer_curves(cost_function) decremental_cost_curves = PSY.get_decremental_offer_curves(cost_function) - if isnothing(decremental_cost_curves) + if !isnothing(decremental_cost_curves) error("Component $(component_name) is not allowed to participate as a demand.") end #=