Opened 11 years ago
Last modified 7 years ago
#2246 closed defect
Variable index model gives incorrect results — at Version 1
Reported by: | Francesco Casella | Owned by: | probably noone |
---|---|---|---|
Priority: | high | Milestone: | 1.13.0 |
Component: | Backend | Version: | trunk |
Keywords: | Cc: |
Description (last modified by )
The following model
model foo Real x1, x2; equation der(x1) = 2; if x1 < 1 then der(x2) = 1; else x2 = 1; end if; end foo;
simulated for one second gives as results x[1]
= 2*time (which is correct) and x[2]
= time, which is wrong for time > 0.5.
I understand an error should be generated at time = 0.5, or maybe right at compile time, unless we can handle variable structure systems, which we obviously can't (or can we?).
Note:
See TracTickets
for help on using tickets.