Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
michel2323 committed Jan 30, 2023
1 parent c69dc8a commit 99ddd7c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/OPF/opfmodel.jl
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ function opf_model_add_block_constraints(opfmodel::JuMP.Model, opfdata::OPFData,
@views for t=1:T, k=1:K
opfdata_c = (k == 1) ? opfdata :
opf_loaddata(rawdata;
lineOff = opfdata.lines[rawdata.ctgs_arr[k - 1]],
lineOff = opfdata.lines[rawdata.ctgs_arr[k - 1],:],
time_horizon_start = modelinfo.time_horizon_start + t - 1,
time_horizon_end = modelinfo.time_horizon_start + t - 1,
load_scale = modelinfo.load_scale,
Expand All @@ -130,7 +130,7 @@ function opf_model_add_block_constraints(opfmodel::JuMP.Model, opfdata::OPFData,
@views for t=1:T, k=1:K
opfdata_c = (k == 1) ? opfdata :
opf_loaddata(rawdata;
lineOff = opfdata.lines[rawdata.ctgs_arr[k - 1]],
lineOff = opfdata.lines[rawdata.ctgs_arr[k - 1],:],
time_horizon_start = modelinfo.time_horizon_start + t - 1,
time_horizon_end = modelinfo.time_horizon_start + t - 1,
load_scale = modelinfo.load_scale,
Expand Down
2 changes: 1 addition & 1 deletion src/backends.jl
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ function init!(block::JuMPBlockBackend, algparams::AlgParams)
end
opfdata_c = (j == 1) ? opfdata :
opf_loaddata(block.rawdata;
lineOff = opfdata.lines[block.rawdata.ctgs_arr[j - 1]],
lineOff = opfdata.lines[block.rawdata.ctgs_arr[j - 1],:],
time_horizon_start = modelinfo.time_horizon_start + t - 1,
time_horizon_end = modelinfo.time_horizon_start + t - 1,
load_scale = modelinfo.load_scale,
Expand Down

0 comments on commit 99ddd7c

Please sign in to comment.