Examples¶

This section contains examples in which pyGDM is used on specific physical problems. For more technical examples, see the tutorials. Note: The syntax of the example and tutorial notebooks is python 2 only.

Note

You can download also the source code of the example and tutorial files (these are python 2 and 3 compatible).

Comparison to Mie theory¶

Note

The spectra calculated by Mie theory used in the corresponding examples can be downloaded here.

Evolutionary optimization¶

Note

The examples on the evolutionary optimization module (EO) are not deterministic. If the results differ from run to run, this is completely normal and actually the consequence of the main drawback of evolutionary optimization: Convergence to the global optimum can never be guaranteed!. Nevertheless, usually the optimizations converge very closely to the optimum, which can be tested by repeated runs of the same optimization.