master > master: code py - schemata aktualisiert

This commit is contained in:
RD 2022-06-15 15:54:52 +02:00
parent 3791220cee
commit 4cc4410c19
3 changed files with 50 additions and 10 deletions

View File

@ -75,20 +75,40 @@
# Beispiele für Seminarwoche 11 (Blatt 10) # Beispiele für Seminarwoche 11 (Blatt 10)
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- &rucksack_1 - name: RUCKSACK
name: RUCKSACK
algorithm: GREEDY algorithm: GREEDY
allow-fractional: false allow-fractional: true
# allow-fractional: false
max-cost: 10 max-cost: 10
items: [a, b, c, d, e] items: [a, b, c, d, e]
costs: costs:
[3, 4, 5, 2, 1] [3, 4, 5, 2, 1]
values: values:
[8, 7, 8, 3, 2] [8, 7, 8, 3, 2]
- <<: *rucksack_1 - name: RUCKSACK
allow-fractional: true
- <<: *rucksack_1
algorithm: BRANCH-AND-BOUND algorithm: BRANCH-AND-BOUND
allow-fractional: true
# allow-fractional: false
max-cost: 10
items: [a, b, c, d, e]
costs:
[3, 4, 5, 2, 1]
values:
[8, 7, 8, 3, 2]
- name: RUCKSACK
algorithm: BRANCH-AND-BOUND
max-cost: 460
items: [
'Lakritze',
'Esspapier',
'Gummibärchen',
'Schokolade',
'Apfelringe',
]
costs:
[220, 80, 140, 90, 100]
values:
[100, 10, 70, 80, 100]
- name: RUCKSACK - name: RUCKSACK
algorithm: BRANCH-AND-BOUND algorithm: BRANCH-AND-BOUND
max-cost: 90 max-cost: 90

View File

@ -22,11 +22,17 @@ options:
diagonal: 0 diagonal: 0
horizontal: 1 horizontal: 1
vertical: 2 vertical: 2
# verbose: []
verbose: verbose:
- COSTS - COSTS
- MOVES - MOVES
# show: []
show: show:
# - ATOMS # - ATOMS
- TREE - TREE
rucksack: rucksack:
verbose: true verbose: true
# show: []
show:
- ALL-WEIGHTS
- ALL-SUMS

View File

@ -53,7 +53,7 @@ components:
- tsp - tsp
- tarjan - tarjan
- hirschberg - hirschberg
- rucksack-branch-and-bound - rucksack
properties: properties:
log-level: log-level:
$ref: '#/components/schemas/EnumLogLevel' $ref: '#/components/schemas/EnumLogLevel'
@ -117,12 +117,16 @@ components:
default: [] default: []
rucksack: rucksack:
type: object type: object
required: required: []
- verbose
properties: properties:
verbose: verbose:
type: boolean type: boolean
default: false default: false
show:
type: array
items:
$ref: '#/components/schemas/EnumRucksackShow'
default: []
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Enum LogLevel # Enum LogLevel
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@ -148,8 +152,18 @@ components:
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
EnumHirschbergShow: EnumHirschbergShow:
description: |- description: |-
Enumeration of verbosity options for Hirschberg Enumeration of display options for Hirschberg
type: string type: string
enum: enum:
- TREE - TREE
- ATOMS - ATOMS
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Enum Rucksack - display options
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
EnumRucksackShow:
description: |-
Enumeration of display options for the Rucksack problem
type: string
enum:
- ALL-WEIGHTS
- ALL-SUMS