diff --git a/simplexImp.py b/simplexImp.py index 9acdce1..7a728ad 100644 --- a/simplexImp.py +++ b/simplexImp.py @@ -87,12 +87,12 @@ class SimplexMethod: if count == 1: result.append({ - "name": "x" + str(index), - "value": self.table[index, self.n - 1] / self.table[index, j] + "name": "x" + str(j + 1), + "value": int(self.table[index, self.n - 1] / self.table[index, j]) }) result.append({ "name": "F", - "value": self.table[self.m - 1, self.n - 1] + "value": int(self.table[self.m - 1, self.n - 1]) }) return result