feat(scenario): scenario runner, extensions and working copy
scenario.py runs all five simulators of the core from a JSON scenario file, with sweeps, and reproduces 20 of the note's data files (14 byte for byte, 6 column-wise). Extensions live outside the core and must reproduce it exactly in a limit case; paadrag_tidsserie is the worked example. arbeidskopi.py gives the user a copy of the model they can change. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
parent
464ad38b49
commit
03151cfb3b
36 changed files with 3580 additions and 5 deletions
18
eksempler/scenarioer/notatet/prio_s2.json
Normal file
18
eksempler/scenarioer/notatet/prio_s2.json
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
{
|
||||
"navn": "prio_s2",
|
||||
"beskrivelse": "Gjenskaper kolonnene i data/prio_s2.dat: domstol med to sakstyper, scenario 2, ingen tiltak. Kjøringen med forrang (prio = true) gir kolonnene t, K, KA, KB, tauA og tauB; kjøringen uten (FIFO, prio = false) gir tauF (= tauA), KF (= K) og KAF (= KA).",
|
||||
"modell": "simulate_chain2",
|
||||
"styring": {
|
||||
"regulator": "P",
|
||||
"forsinkelse": 3,
|
||||
"reaktivitet": 3
|
||||
},
|
||||
"sveip": {
|
||||
"parameter": "parametere.CH2.prio",
|
||||
"verdier": [true, false]
|
||||
},
|
||||
"utdata": {
|
||||
"format": "notat",
|
||||
"kolonner": ["t", "K", "KA", "KB", "tauA", "tauB"]
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue