Skip to content

Commit

Permalink
add meta field to ff parameter getter
Browse files Browse the repository at this point in the history
  • Loading branch information
jd-lara committed Oct 31, 2023
1 parent 026e5bc commit de326b5
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")

Check warning on line 459 in src/feedforward/feedforward_constraints.jl

View check run for this annotation

Codecov / codecov/patch

src/feedforward/feedforward_constraints.jl#L456-L459

Added lines #L456 - L459 were not covered by tests
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 de326b5

Please sign in to comment.