Skip to content

Commit

Permalink
fix for iterior point invalid indexing
Browse files Browse the repository at this point in the history
  • Loading branch information
thisiscam committed Nov 30, 2020
1 parent 4a93aa3 commit 54cd643
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion glpk/_glpk.py
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ def glpk(

res.fun = _lib.glp_ipt_obj_val(prob)
res.x = np.array([_lib.glp_ipt_col_prim(prob, ii) for ii in range(1, len(c)+1)])
res.dual = np.array([_lib.glp_ipt_col_dual(prob, ii) for ii in range(1, len(b_ub)+1)])
res.dual = np.array([_lib.glp_ipt_row_dual(prob, ii) for ii in range(1, len(b_ub)+1)])

# We don't get slack without doing sensitivity analysis since GLPK uses
# auxiliary variables instead of slack!
Expand Down

0 comments on commit 54cd643

Please sign in to comment.