Skip to content

Commit

Permalink
fix get_expression
Browse files Browse the repository at this point in the history
  • Loading branch information
jd-lara committed Sep 19, 2023
1 parent 73ef3b7 commit 50dbf79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/devices_models/devices/common/add_to_expression.jl
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ function add_to_expression!(
name = PSY.get_name(d)
mult = get_expression_multiplier(U(), T(), d, W())
_add_to_jump_expression!(
get_expression(container, T(), X)[bus_number, t],
get_expression(container, T(), PSY.ACBus)[bus_number, t],
parameter[name, t],
mult,
)
Expand Down Expand Up @@ -414,7 +414,7 @@ function add_to_expression!(
X <: PM.AbstractPowerModel,
}
variable = get_variable(container, U(), V)
expression = get_expression(container, T(), X)
expression = get_expression(container, T(), PSY.ACBus)
for d in devices, t in get_time_steps(container)
name = PSY.get_name(d)
bus_number = PSY.get_number(PSY.get_bus(d))
Expand Down

0 comments on commit 50dbf79

Please sign in to comment.