aboutsummaryrefslogtreecommitdiffstats
path: root/src/test_simplex.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/test_simplex.cpp')
-rw-r--r--src/test_simplex.cpp19
1 files changed, 19 insertions, 0 deletions
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 <simplex.h>
+
+#include <iostream>
+
+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";
+}