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

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.

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