master > master: code py - verbesserte Darstellung + »korrekte« Behandlung von Reihenfolgen

- im Kurs wird die Permutation nur für Greedy-Berechnungen angewandt
- die Reihenfolge der Items in der Hauptberechnung bei B&B bleibt wie bei Angaben
This commit is contained in:
RD
2022-06-14 14:40:02 +02:00
parent e3c3bbec37
commit 3b8f80cff9
12 changed files with 169 additions and 147 deletions

View File

@@ -116,8 +116,8 @@ components:
type: object
required:
- algorithm
- capacity
- weights
- max-cost
- costs
- values
properties:
algorithm:
@@ -125,18 +125,18 @@ components:
allow-fractional:
type: boolean
default: false
capacity:
description: Maximum weight/volumed allowed in rucksack.
max-cost:
description: Upper bound for total cost of rucksack.
type: number
minimum: 0
weights:
description: Weights or volumes of each item.
costs:
description: Array of cost for each item (e.g. volume, weight, price, time, etc.).
type: array
items:
type: number
exclusiveMinimum: 0
values:
description: Value extracted from each item (e.g. monetary).
description: Value extracted from each item (e.g. energy, profit, etc.).
type: array
items:
type: number