Opened 12 years ago
Closed 7 years ago
#2242 closed defect (worksforme)
function with multiple outputs is treated strange
Reported by: | Willi Braun | Owned by: | somebody |
---|---|---|---|
Priority: | normal | Milestone: | 1.12.0 |
Component: | Frontend | Version: | trunk |
Keywords: | Cc: | Per Östlund, Adrian Pop, Vitalij Ruge |
Description
In the following model the function f1 is simplified wrong to 1.
For some reasons the function f is constant, when f1 is simplified.
function f input Real x; output Real y; output Real y1; algorithm y := exp(x); end f; function f1 input Real x; output Real y; algorithm y := 1 / f(x); // don't work //y := (-f(x)) / (-2); // works //y := f(x) / 2; // don't work //y := f(x) + f(x); // don't work !!! end f1; model A Real y; equation y = f1(time); end A;
Change History (11)
comment:2 by , 12 years ago
I think these probably just lack the DAE.TSUB on the right side. Factors, etc, should not handle tuples!
comment:4 by , 10 years ago
Milestone: | 1.9.1 → 1.9.2 |
---|
This ticket was not closed for 1.9.1, which has now been released. It was batch modified for milestone 1.9.2 (but maybe an empty milestone was more appropriate; feel free to change it).
comment:5 by , 10 years ago
Milestone: | 1.9.2 → 1.9.3 |
---|
Milestone changed to 1.9.3 since 1.9.2 was released.
comment:10 by , 8 years ago
Milestone: | 1.11.0 → 1.12.0 |
---|
Milestone moved to 1.12.0 due to 1.11.0 already being released.
comment:11 by , 7 years ago
Resolution: | → worksforme |
---|---|
Status: | new → closed |
Works as expected in v1.13.0-dev-155-g68350e9
Okay, I found a missing case for tuples in ExpressionSimplify(r16348). So that the first 3 cases are fixed.
But following is still open:
I guess we need to expand tuples somewhere.