Model Analyzer: view program code does not work (nothing happens)

3 views (last 30 days)
I have issues with the followig error when running Model Analyzer:
Severity Message
error Unrecognized function or variable 'dosesForFit'.
So I am trying to check the code by right clicking on the Program name in Project browser and clicking on "View Program Code ..." but nothing happens.
Ideas?

Answers (1)

Christopher Sarkizi
Christopher Sarkizi on 29 Jul 2022
Update:
Closing and re-opening the project causes this error to pop up:
Project Load Messages
Message
error Unable to load project, the client encountered an exception : TypeError: Cannot set property 'label' of undefined
  6 Comments
Arthur Goldsipe
Arthur Goldsipe on 3 Aug 2022
Edited: Arthur Goldsipe on 3 Aug 2022
Hi Chris,
You can import model components from Excel spreadsheets. Here's a link to instructions on how to do that for variants and doses. But other components work similarly.
Unfortunately, there's not currently any way to import initial values or bounds into the table. I'll add that to our list of enhancement requests.
Yes, you can export your parameter estimates to a variant. (Right-click on the results and select "Create Variant from Estimated Parameter Values...") Then, you can either commit that variant to the model to make those your new default initial conditions for simulations. Or you can include that variant in specific simulations if you don't want those to be your new defaults. You can also confirm that variants are applied as expected to a particular simulation program by inspecting your model's intiial conditions in the Model tab of the browser. (See here for an example.)
-Arthur

Sign in to comment.

Communities

More Answers in the  SimBiology Community

Tags

Products


Release

R2022a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!