findDiscreteEquation failed for algorithm
For the following model
model simple4
type modetype = enumeration(on, off);
modetype mode(start = modetype.off);
Real v(start = 0);
algorithm
when (v > 0.5) then
mode := modetype.on;
elsewhen (v <= 0.5) then
mode := modetype.off;
end when;
equation
if (mode == modetype.off) then
v = time * 1.1;
else
v = time * 1.1 + 40;
end if;
end simple4;
The function findDiscreteEquation failed to get the discrete equation (the algorithm) for the discrete variable mode.
Change History
(8)
Cc: |
Frenkel TUD added; Jens Frenkel removed
|
Milestone: |
→ Future
|
Owner: |
changed from Jens Frenkel to Jens Frenkel
|
Status: |
accepted → assigned
|
Owner: |
changed from Jens Frenkel to Lennart Ochel
|
Status: |
assigned → accepted
|
Resolution: |
→ fixed
|
Status: |
accepted → closed
|
Milestone: |
Future → pre1.9.4
|
Milestone: |
pre1.9.4 → 1.9.4
|
The issue for that model is that we don't support mixed systems involving something different than Boolean and also no other equation type than simple equations. So if we pass that function, somewhere else issue will raise.
Suggestion for the model try to break that algebraic loop by insert pre operator.