Opened 10 years ago

Closed 9 years ago

Last modified 9 years ago

#3109 closed defect (fixed)

asserts are evaluated too early in certain cases

Reported by: Lennart Ochel Owned by: Lennart Ochel
Priority: high Milestone: 1.9.4
Component: Backend Version: trunk
Keywords: Cc: dersh@…

Description

There is a problem with too early evaluated asserts if e.g. parameters are evaluated during initialization:

model test
  parameter Real p(fixed=false, min=1, max=2);
initial equation
  p = 1.5;
end test;

This example will display

Variable p out of [min, max] interval: p>= 1.0 and p <= 2.0 has value: 0

Change History (5)

comment:1 by Adam Dershowitz <dersh@…>, 10 years ago

Cc: dersh@… added

comment:2 by Lennart Ochel, 9 years ago

Resolution: fixed
Status: newclosed

This is fixed.

comment:3 by Lennart Ochel, 9 years ago

Milestone: Future1.9.4

comment:4 by Martin Sjölund, 9 years ago

Milestone: 1.9.41.9.4-1.9.x

Milestone renamed

comment:5 by Martin Sjölund, 9 years ago

Milestone: 1.9.4-1.9.x1.9.4

Milestone renamed

Note: See TracTickets for help on using tickets.