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

complex determination of parameters

complex determination of parameters

I have a model for which the determination of two parameters requires the solution of two non-linear equations.
I solved this problem declaring these as real variables (thus not parameters) and writing the equations that allow their determination in the equation section of my model.
This workaround works but implies that my model is called to evaluate these two equations all the time, giving always the same result. Obviously this is a bit of waste of resources.
Does someone know another way to make such "pre-processing" of parameters?

Re: complex determination of parameters

parameter fixed=false and initial equations.

Re: complex determination of parameters

it works!
I had tried with initial equation but did not envisage that the errors I got could be eliminated with fixed=false.
You were very fast and effective, as usual!

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