diff options
author | Yann Herklotz <ymherklotz@gmail.com> | 2017-10-29 14:05:08 +0000 |
---|---|---|
committer | Yann Herklotz <ymherklotz@gmail.com> | 2017-10-29 14:05:08 +0000 |
commit | 0b7a7a9018a05920340acb4f47af9e0dc7e73dec (patch) | |
tree | 2c1e550dfd622be93d7c5ffe406c8f4e81b8e6ef | |
parent | ddb775f89db55129470f2f79f96191e93d894880 (diff) | |
download | Simplex-0b7a7a9018a05920340acb4f47af9e0dc7e73dec.tar.gz Simplex-0b7a7a9018a05920340acb4f47af9e0dc7e73dec.zip |
Improved makefile
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | makefile | 2 | ||||
-rw-r--r-- | src/test_simplex.cpp | 7 |
3 files changed, 9 insertions, 1 deletions
@@ -1,3 +1,4 @@ build *.o .gitignore +.depend @@ -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"; } |