필터 지우기
필터 지우기

A variable is specified by more than one assignment rule

조회 수: 9 (최근 30일)
Day
Day 2024년 4월 16일 14:31
답변: Arthur Goldsipe 2024년 4월 16일 15:22
Hi,
I have a species A_Total = a + b + c, where a, b and c are other species in the same compartment. I have to set a boundary condition that species 'a' is just equal to 'A_total - b - c' to implement the idea of my project.
I received the following message:
Invalid repeatedAssignment rule '[A_Total] = [a] + [b] + [c]'. The variable 'A_Total' is specified by more than one assignment rule.\n
Is there a way to handle this error and still implementing the idea?
Thank you

답변 (1개)

Arthur Goldsipe
Arthur Goldsipe 2024년 4월 16일 15:22
It sounds like you have an ill-defined problem with an algebraic loop. Specifically, A_Total is a function of a, but a is a function of A_Total. To address this problem, you need to make a modeling decision about how these quantites should be determined, and then update the rules accordingly.
For example, yould could decide that A_Total should be set to a fixed value, and delete (or inactivate) the assignment rule that was setting A_Total.

카테고리

Help CenterFile Exchange에서 Scan Parameter Ranges에 대해 자세히 알아보기

제품


릴리스

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by