MATLAB Production Server: can I deploy a script that uses SimBiology functions such as sbmlimport or sbiosimulate?
3 views (last 30 days)
Show older comments
Hi,
I wrote a MATLAB function that accepts an SBML file name, imports it with sbmlimport() and simulates it with sbiosimulate(). I can use matlab.engine Python module to call the function from a Python program, run the simulation and return the results as a list of doubles.
Can I do the same by deploying the script to MATLAB production server? When I create he ctf file with the same function, and try to call it from Python (using client in production_server module), then I get an error saying sbmlimport is not a recognised function (please note that my production server is correctly installed and running, and can run correctly the test functions). How can I include Simbiology functions in my deployed app?
Thanks in advance.
0 Comments
Accepted Answer
Arthur Goldsipe
on 6 Feb 2017
To add to Sean's reply, there are a couple of ways to simulate a model imported from an SBML file when using MATLAB Production Server. However, due to both business and technical limitations, you must decide which models to include at the time you create your CTF file.
I generally recommend using a SimFunction in a deployed environment. Here's a MATLAB Answers post that describes how to deploy a SimFunction.
However, if you need additional flexibility, like the ability to change simulation settings , then you may want to use the export model. Here's an example that shows how to deploy an export model.
0 Comments
More Answers (1)
Sean de Wolski
on 6 Feb 2017
Those functions aren't supported for MATLAB Compiler: https://www.mathworks.com/products/compiler/supported/compiler_support.html
I'd recommend calling tech support and asking for them to be supported in the future.
0 Comments
Communities
More Answers in the SimBiology Community
See Also
Categories
Find more on Perform Sensitivity Analysis in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!