Simplex Algorithm
|
12-24-2023, 03:46 PM
Post: #53
|
|||
|
|||
RE: Simplex Algorithm
(11-22-2023 10:10 PM)Albert Chan Wrote: > simplex_le([[2,3,4,6],[4,2,5,5],[22,20,40,0]],∞,[1,2,3]) simplex_le() simply return infinite solutions (integers or not). It is just luck that above variables happened to be integers. This fixed it. simplex_le(), before patch Code: WHILE 1 DO // Gomory's plane cutting algorithm simplex_le(), after patch Code: WHILE len(x:=a[0]) DO // Gomory's plane cutting algorithm break 2 unable to get out of WHILE loop (why?), thus the ugly multiple breaks. If there is a better way, don't hesitate to post! |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)