make abstract steps of simplex evaluation before elimination process

This commit is contained in:
emil28092005
2024-09-21 20:22:36 +03:00
parent c7edcf8232
commit 3cba9318ef
3 changed files with 58 additions and 17 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;
ColumnVector *solution;
double objective_fucntion_value;
};
Result Simplex(ColumnVector C, Matrix A, ColumnVector b, double eps = 0.01, bool maximize = true);
#endif // SIMPLEX_H