master > master: code py - minor

This commit is contained in:
RD 2022-06-15 07:53:21 +02:00
parent 51632d10e3
commit 25f18db567
1 changed files with 2 additions and 2 deletions

View File

@ -174,10 +174,10 @@ def rucksack_branch_and_bound_algorithm(
if verbose:
repr = display_branch_and_bound(values=values, steps=logged_steps);
repr_rucksack = display_rucksack(items=items[rucksack], costs=costs[rucksack], values=values[rucksack], choice=np.asarray(mask.choice)[rucksack]);
print('\x1b[1mLösung\x1b[0m');
print('');
print(repr);
print('');
print('\x1b[1mLösung\x1b[0m');
print('');
print(f'Mask: [{", ".join(map(str, soln.choice))}]');
print('Rucksack:');
print(repr_rucksack);