From 6e4b09666a72be1811887ab99b7c0073f8ef32fc Mon Sep 17 00:00:00 2001 From: maxnes3 <112558334+maxnes3@users.noreply.github.com> Date: Wed, 20 Dec 2023 02:55:04 +0400 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BE=D0=B6=D0=B0=D1=8E=20=D0=BA?= =?UTF-8?q?=D0=BE=D0=BC=D0=BC=D0=B8=D1=82=D1=8B))?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- simplexImp.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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