필터 지우기
필터 지우기

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

조회 수: 10 (최근 30일)
Sayeeda Syed
Sayeeda Syed 2024년 8월 23일 13:07
답변: Steven Lord 2024년 8월 23일 13:57
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일 13:57
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.

카테고리

Help CenterFile Exchange에서 Ordinary Differential Equations에 대해 자세히 알아보기

태그

제품


릴리스

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by