Currently plot_matrix_variable and select_matrix_entries are implemented with the documented assumption that I and J don't contain repeated coordinates or symmetry pairs like (i, j) and (j, i). Repetition could cause a bug in plot_matrix_variable.
In power systems, for example, some systems may have parallel branches, leading to repetitions in I and J.
In addition, sometimes one may want to visualize variables corresponding to the branches of a system, and other time bus pairs (in which case I and J really don't contain repetitions). viz_opf.jl currently doesn't account for this.
Currently
plot_matrix_variableandselect_matrix_entriesare implemented with the documented assumption thatIandJdon't contain repeated coordinates or symmetry pairs like (i, j) and (j, i). Repetition could cause a bug inplot_matrix_variable.In power systems, for example, some systems may have parallel branches, leading to repetitions in
IandJ.In addition, sometimes one may want to visualize variables corresponding to the branches of a system, and other time bus pairs (in which case
IandJreally don't contain repetitions).viz_opf.jlcurrently doesn't account for this.