Opened 10 years ago

Last modified 10 years ago

#3323 closed defect

Weird results for the solution of a simple equation — at Version 2

Reported by: arvin84@… Owned by: somebody
Priority: high Milestone: 1.9.3
Component: Backend Version: trunk
Keywords: Cc: Lennart Ochel, Willi Braun

Description (last modified by Adrian Pop)

OM ver.: 539229e

for the simple following model:

model a 
  Real x1; 
  Real x2; 
equation 
  x1 + x2 = 0; 
  x1 - x2 = 1; 
end a;

i get the following wrong answer:

x1=0.5;
x2=0;

Change History (2)

comment:1 by arvin84@…, 10 years ago

when i modify the code to the following:

model a 
parameter Real x1(fixed=false); 
parameter Real x2(fixed=false); 
initial equation 
x1 + x2 = 0; 
x1 - x2 = 1; 
end a;

i get the correct answer, x1=0.5, x2=-0.5;

comment:2 by Adrian Pop, 10 years ago

Cc: Lennart Ochel Willi Braun added
Component: UnknownBackend
Description: modified (diff)
Summary: weird results for the solution of a simple equation !!!!Weird results for the solution of a simple equation
Note: See TracTickets for help on using tickets.