- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » complex determination of parameters
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?
- ceraolo
- 147 Posts
Re: complex determination of parameters
parameter fixed=false and initial equations.
- sjoelund.se
- 1700 Posts
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!
- ceraolo
- 147 Posts
- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » complex determination of parameters