フィルターのクリア

Syms function undefined on parallel pool workers when compiling standalone application

2 ビュー (過去 30 日間)
I am trying to run a simulation where I am symbolically generating a set of functions to test during each iteration. I am running several simulations at a time with parfor and it works great on my machine. I am now trying to compile this code to a standalone application to run on AWS since I need more compute power. However when I test the code on my local machine after it compiles I get this error:
'An UndefinedFunction error was thrown on the workers for 'syms'. This might be because the file containing 'syms' is not accessible on the workers. Use addAttachedFiles(pool, files) to specify the required files to be attached. See the documentation for 'parallel.Pool/addAttachedFiles' for more details.'
I don't think I should need to add the symbolic toolbox to the parallel pool... Does anybody know what might be causing this error and how to fix it? Thanks!

採用された回答

Walter Roberson
Walter Roberson 2016 年 11 月 28 日
Nothing from the symbolic toolbox can be compiled.
  2 件のコメント
Steven Lord
Steven Lord 2016 年 11 月 28 日
Walter is correct. Symbolic Math Toolbox is not listed in the table showing which products are supported for use with MATLAB Compiler and so will not work with the MATLAB Compiler.
Alex Baucom
Alex Baucom 2016 年 11 月 28 日
Ahh. I must have missed that somehow. Thanks!

サインインしてコメントする。

その他の回答 (1 件)

Song-Hyun Ji
Song-Hyun Ji 2023 年 6 月 14 日
編集済み: Song-Hyun Ji 2023 年 6 月 14 日
Here are the example documentation and the answers page.
- Deploy Generated MATLAB Functions from Symbolic Expressions with MATLAB Compiler
- How to deploy when using 'syms' and 'solve' with function input arguments to consist the equation in MATLAB Compiler

カテゴリ

Help Center および File ExchangeAssumptions についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by