필터 지우기
필터 지우기

Is there a way to add constraints (other than nonnegativity) on ode15s?

조회 수: 4 (최근 30일)
I am using ode15s to solve a DAE system describing oil-water flow in a pipe. Some of the variables in the solution are physically unrealistic, and I was wondering whether there is a way to add specific constraints?
Thank you.

채택된 답변

Walter Roberson
Walter Roberson 2019년 4월 21일
Only in the sense that you could add an event function to detect the value going out of range, and terminating when it does. If you wanted it to somehow "bounce off" of the boundary then you would have to signal the termination and then call ode15s again with revised conditions and tspan. See for example ballode()

추가 답변 (0개)

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by