Обожаю коммиты))

This commit is contained in:
maxnes3 2023-12-20 02:55:04 +04:00
parent f6d6f4de86
commit 6e4b09666a

View File

@ -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