The LP solver slowed down the process. So, when called, It used up the time to run the simulation, without letting the actual time finish. Changing "MaximumWallClock" to Inf resolved the issue.
When using simbiology, I have a species that calls a function that uses a linear programming solver (glpk) and when I use it, the dosing stops working
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Christopher Nogiec
am 4 Okt. 2023
Beantwortet: Christopher Nogiec
am 20 Okt. 2023
The ultimate goal is to make a hybrid dynamic model and a steady-state model. So, at each step, the model runs, one of the species will be the input to the steady-state model that runs using LP, but doesn't affect
I have a species that calls a repeated assignmet and I made a custom MATLAB function that uses linear programming (glpk). I even set it so that the actual function doesn't affect the model. However, I think the glpk is messing up with the ODE solver. When I don't call the LP solver, the model runs as expected.
- Are there setting that I can adjust to limit this? I already tried disabling absolute tolerance scaling.
- Would there be another LP solver that wouldn't interfere?
- Does MATLAB have a built in LP solver?
I'm using Matlab and Simbiology 2020b on Windows 10
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (1)
Rick Paxson
am 4 Okt. 2023
Bearbeitet: Rick Paxson
am 4 Okt. 2023
I suspect the issue might be with how glpk is getting called. In particular I wonder if it is called synchronously such that the repeated assingment "blocks" execution of the ODE solver until its done. If that is not the case then there would be an issue as the ODE solver would be out of sync with the results from glpk. I am making a bunch of assumptions here so maybe learning more about how this is set up would help.
In the meantime, the optimization toolbox has a LP solver (linprog is the command).
Let me know if this helps.
3 Kommentare
Rick Paxson
am 12 Okt. 2023
I wonder if you are able to share your model and code. We might be able to take a quick look and make suggestions.
Communitys
Weitere Antworten in SimBiology Community
Siehe auch
Kategorien
Mehr zu Extend Modeling Environment finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!