Skip to content

Commit

Permalink
enable all ts constraints
Browse files Browse the repository at this point in the history
  • Loading branch information
bluejuniper committed Dec 10, 2024
1 parent 8d68a40 commit 9dc499d
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions src/prob/gmd_blocker_placement.jl
Original file line number Diff line number Diff line change
Expand Up @@ -214,10 +214,10 @@ function build_blocker_placement_multi_scenario(pm::_PM.AbstractPowerModel; kwar
# d_hs = d_hs_ss
# ths = d_hs + d_to
if get_warn(pm.setting, "ts", false)
# constraint_temperature_state_ss(pm, i, nw=n)
# constraint_hotspot_temperature_state_ss(pm, i, nw=n)
# constraint_hotspot_temperature_state(pm, i, nw=n)
# constraint_absolute_hotspot_temperature_state(pm, i, nw=n)
constraint_temperature_state_ss(pm, i, nw=n)
constraint_hotspot_temperature_state_ss(pm, i, nw=n)
constraint_hotspot_temperature_state(pm, i, nw=n)
constraint_absolute_hotspot_temperature_state(pm, i, nw=n)
end
end

Expand All @@ -242,19 +242,19 @@ function build_blocker_placement_multi_scenario(pm::_PM.AbstractPowerModel; kwar
constraint_load_served(pm, nw=n)
end

# if get_warn(pm.setting, "ts", false)
# for i in _PM.ids(pm, :branch, nw=n_1)
# constraint_temperature_state(pm, i, nw=n_1)
# end

# for n_2 in network_ids[2:end]
# for i in _PM.ids(pm, :branch, nw=n_2)
# constraint_temperature_state(pm, i, n_1, n_2)
# end
if get_warn(pm.setting, "ts", false)
for i in _PM.ids(pm, :branch, nw=n_1)
constraint_temperature_state(pm, i, nw=n_1)
end

for n_2 in network_ids[2:end]
for i in _PM.ids(pm, :branch, nw=n_2)
constraint_temperature_state(pm, i, n_1, n_2)
end

# n_1 = n_2
# end
# end
n_1 = n_2
end
end

objective_blocker_placement_cost_multi_scenario(pm)
end

0 comments on commit 9dc499d

Please sign in to comment.