Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/common_models/market_bid_plumbing.jl
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ function _validate_occ_subtype(
),
)
fd = IS.get_function_data(IS.get_value_curve(curve))
if !iszero(first(IS.get_x_coords(fd)))
if !iszero(first(IS.get_domain(fd)))
throw(
ArgumentError(
"For ImportExportCost, the first breakpoint must be zero.",
Expand Down
2 changes: 1 addition & 1 deletion src/static_injector_models/thermal_generation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ end
function _onvar_cost(container::OptimizationContainer, cost_function::Union{PSY.FuelCurve{PSY.LinearCurve}, PSY.FuelCurve{PSY.QuadraticCurve}}, d::T, t::Int) where {T <: PSY.ThermalGen}
value_curve = PSY.get_value_curve(cost_function)
cost_component = PSY.get_function_data(value_curve)
# In Unit/h
# Cost at zero output (y-intercept), in Unit/h.
constant_term = PSY.get_constant_term(cost_component)
fuel_cost = PSY.get_fuel_cost(cost_function)
if typeof(fuel_cost) <: Float64
Expand Down
Loading