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

Initialisation with .mat file

Initialisation with .mat file


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

Re: Initialisation with .mat file


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".

There are 0 guests and 0 other users also viewing this topic
You are here: