diff --git a/src/PowerSystems.jl b/src/PowerSystems.jl index 1d03673499..feefbfcc1d 100644 --- a/src/PowerSystems.jl +++ b/src/PowerSystems.jl @@ -560,7 +560,6 @@ import InfrastructureSystems: get_points, # TODO possible rename to disambiguate from geographical information get_x_coords, get_y_coords, - get_raw_data, get_raw_data_type, supports_time_series, supports_supplemental_attributes diff --git a/src/models/cost_functions/HydroGenerationCost.jl b/src/models/cost_functions/HydroGenerationCost.jl index e22a4169cc..7dff63a091 100644 --- a/src/models/cost_functions/HydroGenerationCost.jl +++ b/src/models/cost_functions/HydroGenerationCost.jl @@ -1,6 +1,6 @@ """ mutable struct HydroGenerationCost <: OperationalCost - variable::FuelCurve + variable::ProductionVariableCost fixed::Float64 end @@ -10,8 +10,10 @@ values are used or the opportunity cost of water if the costs are positive. It a fuel curves to model specific water intake. # Arguments -- `variable::FuelCurve`: Production variable cost represented by a fuel curve, where the fuel is water. -- `fixed::Union{Nothing, Float64}`: Fixed cost of keeping the unit online. For some cost represenations this field can be duplicative. +- `variable::ProductionVariableCost`: Production variable cost represented by a `FuelCurve`, + where the fuel is water, or a `CostCurve` in currency. +- `fixed::Union{Nothing, Float64}`: Fixed cost of keeping the unit online. For some cost + represenations this field can be duplicative. """ @kwdef mutable struct HydroGenerationCost <: OperationalCost "variable cost" @@ -21,7 +23,7 @@ fuel curves to model specific water intake. end # Constructor for demo purposes; non-functional. -HydroGenerationCost(::Nothing) = HydroGenerationCost(zero(FuelCurve), 0.0) +HydroGenerationCost(::Nothing) = HydroGenerationCost(zero(CostCurve), 0.0) """Get [`HydroGenerationCost`](@ref) `variable`.""" get_variable(value::HydroGenerationCost) = value.variable diff --git a/src/parsers/power_models_data.jl b/src/parsers/power_models_data.jl index 3daba54144..befc732635 100644 --- a/src/parsers/power_models_data.jl +++ b/src/parsers/power_models_data.jl @@ -320,7 +320,7 @@ end function make_hydro_gen(gen_name, d, bus, sys_mbase) ramp_agc = get(d, "ramp_agc", get(d, "ramp_10", get(d, "ramp_30", abs(d["pmax"])))) - curtailcost = HydroGenerationCost(zero(FuelCurve), 0.0) + curtailcost = HydroGenerationCost(zero(CostCurve), 0.0) base_conversion = sys_mbase / d["mbase"] return HydroDispatch(; # No way to define storage parameters for gens in PM so can only make HydroDispatch