- Qucs -
Quite Universal Circuit Simulator
Začínáme s
optimalizací
Pro optimalizaci obvodu používá Qucs utilitku ASCO
(http://asco.sourceforge.net/).
Zde předložím popis jak připravit vaše schéma, jak to celé spustit a jak porozumět
výsledkům. Předtím než budete chtít využívat tuto funkci, musíte nainstalovat
ASCO na váš počítač.
Obvod s minimalizací není nic víc, než program, který minimalizuje počet
funkcí. Může to být každé časové zpoždění, nebo doba náběžné hrany v digitálních obvodech, nebo
jakýkoli zdroj v analog obvodech.Další možností je definovat
optimalizační problém jako skládání funkcí, nebo jako v tomto případě,
definovat "figure-of-metir".
Pro nastavení optimalizace musíme dvě věci do schématu přidat:
rovnici (rovnice) a velký čtverec s nápisem "Optimalizace" (Ve skupině "Simulace")
Sestavte schéma podle obrázku 1 a hrajte si s Qucs, dikud vaše schéma nebude
vypadat jako na obrázku 2 ;-) .

Obrázek 1 - Počáteční schéma

Obrázek 2 - Připravené schéma
Nyní vyberte ze skupin komponent komponentu "Optimalizace".
Z existujících parametrů je třeba věnovat speciální pozornost
Now, open the optimization component and select the optimization tab. From the
existing parameters, special attention should be paid to 'Maximum number of
iterations', 'Constant F' and 'Crossing over factor'. Over- or underestimation
can lead to a premature convergence of the optimizer to a local minimum or, a very long
optimization time.

Figure 3 - Optimization dialog, algorithm options.
In the Variables tab, defining which circuit elements will be chosen from the
allowed range, as shown in Figure 4. The variable names correspond to the
identifiers placed into properties of components and not the components'
names.

Figure 4 - Optimization dialog, variables options.
Finally, go to Goals where the optimization objective (maximize, minimize) and
constraints (less, greater, equal) are defined. ASCO then automatically combines
them into a single cost function, that is then minimized.

Figure 5 - Optimization dialog, goals options.
The next step is to change the schematic, and define which circuit elements are
to be optimized. The resulting schematic is show in Figure 6.

Figure 6 - New Qucs main window.
The last step is to run the optimization, i.e. the simulation by pressing F2.
Once finished, which takes a few
seconds on a modern computer, the best simulation results is shown in the
graphical waveform viewer.

Figure 7 - Qucs results window.
The best found circuit sizes can be found in the optimization dialog, in the
Variables tab. They are now the initial values for each one of introduced
variables (Figure 8).

Figure 8 - The best found circuit sizes.
Nahoru