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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user