aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYann Herklotz <ymherklotz@gmail.com>2017-10-29 14:05:08 +0000
committerYann Herklotz <ymherklotz@gmail.com>2017-10-29 14:05:08 +0000
commit0b7a7a9018a05920340acb4f47af9e0dc7e73dec (patch)
tree2c1e550dfd622be93d7c5ffe406c8f4e81b8e6ef
parentddb775f89db55129470f2f79f96191e93d894880 (diff)
downloadSimplex-0b7a7a9018a05920340acb4f47af9e0dc7e73dec.tar.gz
Simplex-0b7a7a9018a05920340acb4f47af9e0dc7e73dec.zip
Improved makefile
-rw-r--r--.gitignore1
-rw-r--r--makefile2
-rw-r--r--src/test_simplex.cpp7
3 files changed, 9 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
index dd63c4d..df2e66f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
build
*.o
.gitignore
+.depend
diff --git a/makefile b/makefile
index fb5c24d..89da730 100644
--- a/makefile
+++ b/makefile
@@ -23,4 +23,4 @@ $(BUILD_DIR)/%.o : %.cpp
.PHONY : clean
clean :
- -rm $(BUILD_DIR)/$(BIN) $(OBJ) $(DEP)
+ -rm -rf $(BUILD_DIR)
diff --git a/src/test_simplex.cpp b/src/test_simplex.cpp
index ba177f8..c5e54b9 100644
--- a/src/test_simplex.cpp
+++ b/src/test_simplex.cpp
@@ -15,5 +15,12 @@ int main()
s.solve();
+ // s.initialize({{1, -20, -9, 0, 0, 10.5, -70.5, 0, 0},
+ // {0, -2, 4, 1, 0, 0.5, -4.5, 0, 0},
+ // {0, -0.5, 0.5, 0, 1, 0.25, -1.25, 0, 0},
+ // {0, 1, 0, 0, 0, 0, 0, 1, 1}});
+
+ // s.solve();
+
std::cout << "Result: " << s.getMin() << "\n";
}