- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » DIFFERENCE BETWEEN ANALYZER AND...
DIFFERENCE BETWEEN ANALYZER AND OPTIMIZER
DIFFERENCE BETWEEN ANALYZER AND OPTIMIZER
Hello,
In OpenModelica System Documentation Version 2009-11-09 for OpenModelica 1.5 figure 1.2 shows Translation stages from Modelica code to executing simulation. What is the difference between the jobs of Analyzer and Optimizer? More specifically, optimization, I understand, but what is meant by sorted equations?
Regards,
AC.
Re: DIFFERENCE BETWEEN ANALYZER AND OPTIMIZER
I'll start with sorting as that is easy to explain. Suppose you have equations:
b = a - c
b = 2 * c
c = log(time)
In order to solve a, you first need to evaluate b and c. So we sort the equations and execute them in a specific order:
(solve for c) c = log(time)
(solve for b) b = 2 * c
(solve for a) b = a - c
The optimizer handles these things and more (index reduction, alias elimination, etc). Although I would not really write analysis and optimization as two phases in a pipeline as they are intertwined.
- sjoelund.se
- 1700 Posts
- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » DIFFERENCE BETWEEN ANALYZER AND...