Changes between Initial Version and Version 1 of Ticket #3097


Ignore:
Timestamp:
2015-01-23T22:17:21Z (10 years ago)
Author:
Lennart Ochel
Comment:

Please not, == on Real numbers is only allowed inside function. If the type of the discrete variable y is changed to Integer, then everything works fine.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #3097 – Description

    initial v1  
    11In the following model, relational operators give inconsistent results when the compared variable is set using an "if-expression":
     2{{{#!mo
    23model Test
    34  Real y;
     
    1011  y = if time > 2 then 100 else 0;
    1112end Test;
     13}}}
    1214
    1315The results show that b1 b2 and b3 are all true at the same time, which is illogical.