Simplex Algorithm
|
11-11-2023, 11:21 PM
(This post was last modified: 01-07-2024 02:41 AM by ftneek.)
Post: #1
|
|||
|
|||
Simplex Algorithm
Attached is an implementation of the simplex algorithm as developed in
An Introduction to Linear Programming and Game Theory 3rd Edition, Paul R. Thie and Gerard E. Keough (ISBN: 978-0470232866). Thanks to Albert Chan for his contributions. I have also included their simplex_le() method. I originally posted it in this thread, but there's been a few changes since then. 2023/11/11: initial upload 2023/11/17: some speed improvements. simplex2 was renamed to simplex_core(), shown examples will still work if you just change the name. 2023/11/18: added simplex_int() for integer programming problems. simplex_core() returns a list of basic variables as 4th item when there is a solution. Updated and added some integer tests. See post 26 for an example. 2023/11/19: speed improvements, new simplex() wrapper. See post 27 for example inputs. 2023/11/19: fixed exact-> floating point bug for integer problems, more tests 2023/11/21: fixed bug in infinite solution code, new test 2023/12/21:
2023/12/23:
- neek |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)