Simplex Algorithm
|
12-24-2023, 08:05 PM
Post: #55
|
|||
|
|||
RE: Simplex Algorithm
(12-24-2023 07:32 PM)ftneek Wrote: Your first for loop seems to iterate over all x[I] (from 1 to len(x[1])), we only need to check the indices from the integers list, anything else does not matter if it is integer or not. It was simply simplex_le original code, nested with b loop to handle possibly 2 edges. 1st b loop select column of x = 1 .. len(x[1]) = 1 .. (1 or 2) 2nd I loop select rows from integer list z, *not* all rows of x Quote:break statement is nested inside a while and 2 for loops, so you may need to use break 3. I mean to break out from b loop and WHILE loop. But, with break n bug, this does not work. It does not matter if you change 2 to 3, or even break 99 Code: WHILE len(x:=a[0]) DO // Gomory's plane cutting algorithm |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 4 Guest(s)