Revert "Deleted manual input function"

This reverts commit fa123e0fb0.
This commit is contained in:
Ilya Grigorev
2024-10-07 21:06:00 +05:00
parent 9b67db3629
commit 262894d00d
13 changed files with 1017 additions and 1 deletions
+20
View File
@@ -0,0 +1,20 @@
#ifndef SIMPLEX_H
#define SIMPLEX_H
#include <vector>
#include "tools/matrix.h"
enum solver_state {
unbounded,
bounded
};
struct Result {
solver_state state;
Vector *solution;
double objective_fucntion_value;
};
Result Simplex(Vector C, Matrix A, Vector b, double eps = 0.01, bool maximize = true);
#endif // SIMPLEX_H