How can I create a custom sensitivity analysis for a compartmental model in symbiology?
조회 수: 3 (최근 30일)
이전 댓글 표시
I am trying to run a sensitivity analysis where I vary one parameter for a data set/variants activated by orders of magnitude (say -5 to 5), and obtain the peak value for a species in order to compare the % change from the original (order of magnitude of 0). In principle, it makes sense in my head how to do this, but I don't know how to go about writing a custom code in symbiology.. Any help would strongly be appreciated.
I have a program in symbiology for running multiple data set and single data set simulations, but not sure how to define a custom one like this.
댓글 수: 0
채택된 답변
Arthur Goldsipe
2025년 8월 14일
If I'm correctly understanding what you want to do, it sounds quite similar to what you can do today with global sensitvity analysis (GSA) programs. These programs allow you to specify as "inputs" a range of values to sample, simulate under those conditions, and then analyze how a simulation "output" varies with those "inputs." As of R2025a, SimBiology supports 3 different GSA algorithms, as described here.
If none of these GSA approaches suits your needs, you could write a custom program. If you want to learn how to do that, the easiest solution is probably to adapt the code for your existing program. If you right-click on the program name in the Browser, you can click on "View Program Code..." to get sample code that you can then copy and paste into a Custom Code program, and then edit it further.
댓글 수: 2
Arthur Goldsipe
2025년 8월 18일
If you're having problems writing custom code, this community may be able to help. But we will need you to share more details. The best would be for you to share a project with sample code, so we can see what you've tried and what problem you are running into.
추가 답변 (0개)
커뮤니티
더 많은 답변 보기: SimBiology Community
참고 항목
카테고리
Help Center 및 File Exchange에서 Perform Sensitivity Analysis에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!