From 45c772c75c4c6204c8161d06ad73ab6ab7218646 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A1=D0=B5=D1=80=D0=B3=D0=B5=D0=B9=20=D0=9F=D0=BE=D0=BB?= =?UTF-8?q?=D0=B5=D0=B2=D0=BE=D0=B9?= Date: Thu, 14 Dec 2023 05:46:22 +0400 Subject: [PATCH] =?UTF-8?q?=D0=9C=D0=B8=D0=BA=D1=80=D0=BE=D0=BF=D1=80?= =?UTF-8?q?=D0=B0=D0=B2=D0=BE=D1=87=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.py b/src/main.py index d13d7a4..57099f8 100644 --- a/src/main.py +++ b/src/main.py @@ -153,11 +153,11 @@ if __name__ == '__main__': print(f'\n\t============ Итерация {iteration} ============\t\n' + str(simplex)) iteration += 1 - func_value, substitutions = simplex.answer() + func_value, subs = simplex.answer() print() print(f'f = {func_value}') print() - for substitution in sorted(substitutions): + for substitution in sorted(subs): print(f'{substitution.var.name} = {"{0:2.2f}".format(substitution.value)}')