Result of fitting, and group simulation with the results of the fitting are giving me different simulations
30 views (last 30 days)
Show older comments
Gustavo
on 30 Oct 2025 at 10:10
Answered: Jeremy Huard
on 31 Oct 2025 at 20:41
I fit some data and create a variant with the results.
Then I duplicate the program of the fitting, and change the configuration into a group simulation, and added the new variant.
The simulation is different in the group simulation, than the result of the fitting. I do not know why this is happening.
If I create another program with only simulation, without data, the plot is the same as in the fitting.
Is this a bug?
2 Comments
Mathieu NOE
on 30 Oct 2025 at 10:34
hello
without a working code and some data it's going to be difficult to help you
Arthur Goldsipe
on 30 Oct 2025 at 14:55
I'm a developer on the SimBiology team. There are many possible explanations for this. If you can provide reproduction steps here, we can better assist you. If you are unable to share reproduction steps publicly, another option would be to share reproduction steps privately with me or MathWorks Technical Support. If even that is a concern, then please share more information on what prevents you from sharing the details. Some SimBiology users have been able to share models privately after "obfuscating" the names of species, and MathWorks has tools to assist with that obfuscation.
Accepted Answer
Jeremy Huard
on 31 Oct 2025 at 20:41
Gustavo shared his project offline, and we identified the issue: The group simulation program was configured to apply variants in the wrong order.
In the group simulation program, the variant containing the estimated values is applied first. Then, a baseline variant that also contains values for these parameters is applied, overwriting the estimated values.
To verify the application order, check the Variant and Dose Setup table in the group simulation. Variants are applied from right to left.
Note that this behavior differs from single simulation programs, where baseline variants are applied from top to bottom in the list.
Thank you, @Gustavo, for reporting the issue. The SimBiology development team has made a note that this behavior difference can be confusing and result in mistakes when configuring programs. We hope to fix this usability issue in a future release.
0 Comments
More Answers (0)
Communities
More Answers in the SimBiology Community
See Also
Categories
Find more on Scan Parameter Ranges in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!