Микроправочки
This commit is contained in:
parent
ba713dca25
commit
45c772c75c
@ -153,11 +153,11 @@ if __name__ == '__main__':
|
|||||||
print(f'\n\t============ Итерация {iteration} ============\t\n' + str(simplex))
|
print(f'\n\t============ Итерация {iteration} ============\t\n' + str(simplex))
|
||||||
iteration += 1
|
iteration += 1
|
||||||
|
|
||||||
func_value, substitutions = simplex.answer()
|
func_value, subs = simplex.answer()
|
||||||
|
|
||||||
print()
|
print()
|
||||||
print(f'f = {func_value}')
|
print(f'f = {func_value}')
|
||||||
print()
|
print()
|
||||||
|
|
||||||
for substitution in sorted(substitutions):
|
for substitution in sorted(subs):
|
||||||
print(f'{substitution.var.name} = {"{0:2.2f}".format(substitution.value)}')
|
print(f'{substitution.var.name} = {"{0:2.2f}".format(substitution.value)}')
|
||||||
|
Loading…
Reference in New Issue
Block a user