Skip to content

Commit

Permalink
Reference to basis list passed instead of instantiating new list.
Browse files Browse the repository at this point in the history
This had the effect of the basis in BFS list returned by simplex having all the
same basis B (the final basis).
  • Loading branch information
henryrobbins committed Apr 14, 2022
1 parent 79d2822 commit 2cbebf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gilp/simplex.py
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ def simplex(lp: LP,
i = 0 # number of iterations
while(not bfs.optimal):
path.append(BFS(x=np.copy(bfs.x),
B=bfs.B,
B=bfs.B.copy(),
obj_val=bfs.obj_val,
optimal=bfs.optimal))
bfs = _simplex_iteration(lp=lp,
Expand Down

0 comments on commit 2cbebf5

Please sign in to comment.