Skip to content

Commit

Permalink
Update lp_diag.py to correctly identify columns
Browse files Browse the repository at this point in the history
Changing `"col":self.mat_row` to `"col":self.mat_col` when generating self.mat DataFrame to allow the tool to correctly identify columns with bad coefficients
  • Loading branch information
ywpratama authored Nov 23, 2023
1 parent 6a598a1 commit 70dddb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion message_ix/tools/lp_diag/lp_diag.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ def mps_sum(self):

# create a df with the matrix coefficients
self.mat = pd.DataFrame(
{"row": self.mat_row, "col": self.mat_row, "val": self.mat_val}
{"row": self.mat_row, "col": self.mat_col, "val": self.mat_val}
)
self.mat["abs_val"] = abs(
self.mat["val"]
Expand Down

0 comments on commit 70dddb3

Please sign in to comment.