How to apply NonNegativity constraint in ODE solver when defining ode as a structure

3 ビュー (過去 30 日間)
Sayeeda Syed
Sayeeda Syed 2024 年 8 月 23 日
コメント済み: Sayeeda Syed 2024 年 9 月 2 日
I am trying to perform a local sensitivity analysis on the parameters of my model using odeSensitivity. Taking help from this page https://in.mathworks.com/help/matlab/ref/odesensitivity.html. but the problem is that when I used to code the ode simply I put nonnegativity under options, but now i am not able to do that. I tried taking F.NonNegative=ones(1,n_parameters) but that doesnt seem to work.

回答 (1 件)

Steven Lord
Steven Lord 2024 年 8 月 23 日
The relevant property of the ode object to specify that some of the variables must be non-negative is NonNegativeVariables. After you've set up that property, create the odeSensitivity object and set it to the ode object's Sensitivity property.
  7 件のコメント
Steven Lord
Steven Lord 2024 年 9 月 1 日
Please send the code you're using to solve the system to Technical Support directly using this link. That way the development staff can investigate to determine if there is a bug in the sensitivity analysis code or if there's a modifiation required in your code.
Sayeeda Syed
Sayeeda Syed 2024 年 9 月 2 日
I have sent the code through the link, I will be waiting for a reply, thank you very much

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

カテゴリ

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

タグ

製品


リリース

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by