Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register
  • Index
  • » Users
  • » TAeZo
  • » Profile

Posts

Posts

Nov-20-19 09:50:00
initial equation takes precedence over the initialization script

Hello,

I apologize  for this topic. I had misread and understood the user documentation. For those who are interested, just put the simulation flag "-iim = none".

Aug-09-19 13:41:39
initial equation takes precedence over the initialization script

Hello,

I'm using the simulation flags (-iif & -iit) to restart calculation from previous results within a .mat file. The models I run contains initial equation sections.

I think when I look at the LOG_INIT that the process of initialisation is the following:
The compiler, during the initialisation, starts using the start, nominal or guess values from the model but then replace them with the value contained in the mat file.

My problem appears when values are given to variables within the initial equation section. It is this last value and not that of the mat file that is used in the rest of the calculation. I know that I could use start and fixed attributes of variables instead of initial equation but is less convenient and impossible for few models.

Therefore, is it possible to prioritize the mat file on the initial equation or does someone has an idea to overturn the problem ?

Thanks in advance
Felix

  • Index
  • » Users
  • » TAeZo
  • » Profile
You are here: