Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2019
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. def simplex(c, A, b):
  2. tableau = to_tableau(c, A, b)
  3.  
  4. while can_be_improved(tableau):
  5. pivot_position = get_pivot_position(tableau)
  6. tableau = pivot_step(tableau, pivot_position)
  7.  
  8. return get_solution(tableau)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement