Hi
I am new to Simule (V 7.2) and I have been playing with experimental conditions to simulate results for large samples of parameter values.
I am trying to use “Set of permutations” to do this but I keep receiving this king of error message when I add a second list of parameters values like in the joint screenshot :
can't read "exptl_case(year_demand=10+year_demand=20)": no such element in array
can't read "exptl_case(year_demand=10+year_demand=20)": no such element in array
while executing
"set host $exptl_case($parent)"
(procedure "InsertExptlCase" line 7)
invoked from within
"InsertExptlCase {} magnitude_demand_set=500+year_demand=10+year_demand=20 year_demand=10+year_demand=20"
invoked from within
"$execInterp($node,id) eval $execSideCmd"
(procedure "InsertExptlCase" line 5)
invoked from within
"InsertExptlCase $node $caseId $parent"
(procedure "AddCase" line 4)
invoked from within
"AddCase [GetNode] [join [lsort [linsert $oldCombo end $case]] +] $oldCase"
(object "::helper44" method "::similescript::DIYInspector20210125::ExtendPerms" body line 18)
invoked from within
"ExtendPerms $lvl $name $hitPath"
(object "::helper44" method "::similescript::DIYInspector20210125::DecodeListSpec" body line 22)
invoked from within
"::helper44 DecodeListSpec {.mre8.mainpw.controlPane.panedwindow.explorerPane.notebook.params.container.c.canvas.frame.framenode00289_expt.frameperm2.f..."
invoked from within
"[winfo parent $e].tick invoke"
(procedure "InvokeTickOnEntry" line 2)
invoked from within
"InvokeTickOnEntry .mre8.mainpw.controlPane.panedwindow.explorerPane.notebook.params.container.c.canvas.frame.framenode00289_expt.frameperm2.framemagni..."
(command bound to event)
I don’t understand the behavior. I was expecting the software to create a sample of 10 sets of parameters in the given example with all possible couples of values for the two parameters.
Could you please help me with this?
Thank you very much,
Best regards,
Pierre
Attachment | Size |
---|---|
![]() | 8.86 KB |
Set of permutations
Hi Pierre, thanks for your detailed report on this issue! There is certainly a problem with lists of values inside permutations -- once you have added one, you get an error if you try to add anything else inside the permutation. We will have a careful look for the problem and try to find a fix for it.
Set of permutations
I've found the cause of this problem and fixed it, but noticed a few other problems with experiments along the way -- particularly, if you enter a list of values in square brackets (i.e., as per your screenshot), then save the experiment setup, when you reload it the case names are no longer "param=val" but just the value's position in the list. We shall fix this also and release Simile v7.2.10 with the fixes
Thanks for all feedback on the experiment setup feature! If you are feeling brave you can edit a file in Simile to fix the problem. Go into IOTools/Standard tools/DIYinspector.tcl and replace line 214 which currently reads
return [concat $result $bases [list $additions]]
with
return [concat $result $bases $additions]