From c49d605fc733aa2d242630c2111a1546aaab079e Mon Sep 17 00:00:00 2001 From: Jose Daniel Lara Date: Thu, 2 May 2024 13:33:09 -0600 Subject: [PATCH] change getters --- src/models/cost_functions/StorageCost.jl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/models/cost_functions/StorageCost.jl b/src/models/cost_functions/StorageCost.jl index 67d0b3637f..7eba574484 100644 --- a/src/models/cost_functions/StorageCost.jl +++ b/src/models/cost_functions/StorageCost.jl @@ -65,8 +65,10 @@ function StorageCost(::Nothing) StorageCost() end -"""Get [`StorageCost`](@ref) `variable`.""" -get_variable(value::StorageCost) = value.variable +"""Get [`StorageCost`](@ref) `charge_variable_cost`.""" +get_charge_variable_cost(value::StorageCost) = value.charge_variable_cost +"""Get [`StorageCost`](@ref) `charge_variable_cost`.""" +get_discharge_variable_cost(value::StorageCost) = value.charge_variable_cost """Get [`StorageCost`](@ref) `fixed`.""" get_fixed(value::StorageCost) = value.fixed """Get [`StorageCost`](@ref) `start_up`."""