Микроправочки

This commit is contained in:
Сергей Полевой 2023-12-14 05:46:22 +04:00
parent ba713dca25
commit 45c772c75c

View File

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