Search found 6 matches

by niyousha@vt.edu
Tue Sep 05, 2023 6:40 pm
Forum: Vensim
Topic: Sensitivity analysis using the file option in a subscripted model
Replies: 13
Views: 857

Re: Sensitivity analysis using the file option in a subscripted model

When I save this as tab-delimited text, Excel quotes the column headers like "fracDWI[Male,Age15]" This is a nonstandard behavior, because quotes are not needed when the delimiter is tab (only csv). Unfortunately this is not legitimate quoting in Vensim (the subscript brackets should not ...
by niyousha@vt.edu
Fri Aug 25, 2023 5:35 pm
Forum: Vensim
Topic: Sensitivity analysis using the file option in a subscripted model
Replies: 13
Views: 857

Re: Sensitivity analysis using the file option in a subscripted model

If you can upload what you have, we can take a look. I used a simple version (parameters without any subscript) and I did not get any error. As soon as I add a parameter with subscript, I get error. I would like to share my text file that I use in my sensitivity analysis but the attachment cannot b...
by niyousha@vt.edu
Fri Aug 25, 2023 3:12 pm
Forum: Vensim
Topic: Sensitivity analysis using the file option in a subscripted model
Replies: 13
Views: 857

Re: Sensitivity analysis using the file option in a subscripted model

Male.Age15 cannot be a correct subscript for Vensim, any subscript elements with a "." need to be quoted. So the correct syntax would be FracDWI["Male.Age15"] sorry for the typo. I used [Male,Age15]. The model is fine; the only problem is when I use sensitivity analyses using th...
by niyousha@vt.edu
Fri Aug 25, 2023 2:55 pm
Forum: Vensim
Topic: Sensitivity analysis using the file option in a subscripted model
Replies: 13
Views: 857

Re: Sensitivity analysis using the file option in a subscripted model

What error are you seeing? I'm guessing that you're putting varname[range] in the headers. I don't think that works - you need to provide a separate column for each varname[element]. Yes, I inserted the varnames like fracDWI[Male,Age15] in the headers (in a separate column for each of them). How th...
by niyousha@vt.edu
Fri Aug 25, 2023 2:45 pm
Forum: Vensim
Topic: Sensitivity analysis using the file option in a subscripted model
Replies: 13
Views: 857

Re: Sensitivity analysis using the file option in a subscripted model

This is the error:
Bad constant-"FracDWI[Male.Age15]" in file MCMC4.txt.
by niyousha@vt.edu
Fri Aug 25, 2023 2:22 pm
Forum: Vensim
Topic: Sensitivity analysis using the file option in a subscripted model
Replies: 13
Views: 857

Sensitivity analysis using the file option in a subscripted model

How to run sensitive analyses using the file option when the model is subscripted? I get errors when using subscripted parameters.