Opened 13 years ago
Last modified 13 years ago
#1641 closed defect (fixed)
Algebraic system of equation generates no code and wrong results!
Reported by: | Adrian Pop | Owned by: | Adrian Pop |
---|---|---|---|
Priority: | critical | Milestone: | |
Component: | Version: | ||
Keywords: | Cc: | Adrian Pop, Frenkel TUD, Martin Sjölund, Willi Braun |
Description
Got this model from Vikrant C. Aute @ University of Maryland.
If you simulate it you get a = 0 and b = 0. If you provide
start values for a and b the start values are returned (even
if they are not correct). Any idea what's going on? It seems
we have no code for the system at all in the generated code.
It should be b = -3,578, etc.
model algebraicEQUset Real a; Real b; equation a = 3 * b + 5.7; a = -0.13 * b - 4.5; end algebraicEQUset;
Note:
See TracTickets
for help on using tickets.
Yes, we just solve this system and bind the correct solved value to this known variables. So far so good, but then we write just the start value to the init file, instead of the bind exp to the variable.