Skip to content

Commit

Permalink
Merge pull request #1017 from NREL-Sienna/jd/fix_fixedvalue_ff_bug
Browse files Browse the repository at this point in the history
add meta field to ff parameter getter
  • Loading branch information
jd-lara authored Oct 31, 2023
2 parents 026e5bc + de326b5 commit 960fe8e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/feedforward/feedforward_constraints.jl
Original file line number Diff line number Diff line change
Expand Up @@ -453,8 +453,10 @@ function add_feedforward_constraints!(
) where {T <: PSY.Component}
time_steps = get_time_steps(container)
parameter_type = get_default_parameter_type(ff, T)
param = get_parameter_array(container, parameter_type(), T)
multiplier = get_parameter_multiplier_array(container, parameter_type(), T)
source_key = get_optimization_container_key(ff)
var_type = get_entry_type(source_key)
param = get_parameter_array(container, parameter_type(), T, "$var_type")
multiplier = get_parameter_multiplier_array(container, parameter_type(), T, "$var_type")
for var in get_affected_values(ff)
variable = get_variable(container, var)
set_name, set_time = JuMP.axes(variable)
Expand Down

0 comments on commit 960fe8e

Please sign in to comment.