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)}')