From 4f2818108e5f0b295e91381b730691fcdfb3516e Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Sun, 29 Oct 2017 13:13:10 +0000 Subject: Working prototype of simplex --- src/test_simplex.cpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/test_simplex.cpp (limited to 'src/test_simplex.cpp') diff --git a/src/test_simplex.cpp b/src/test_simplex.cpp new file mode 100644 index 0000000..ba177f8 --- /dev/null +++ b/src/test_simplex.cpp @@ -0,0 +1,19 @@ +#include + +#include + +int main() +{ + BasicRep br{ + {1, 1, 1, 0, 0, 0, 0}, + {0, 2, 1, 1, 0, 0, 11}, + {0, 1, 3, 0, 1, 0, 18}, + {0, 1, 0, 0, 0, 1, 4}, + }; + + Simplex s{br}; + + s.solve(); + + std::cout << "Result: " << s.getMin() << "\n"; +} -- cgit