Skip to content

Latest commit

 

History

History
24 lines (14 loc) · 678 Bytes

libe-tutorial.rst

File metadata and controls

24 lines (14 loc) · 678 Bytes

libEnsemble Tutorial

The following libe_basic_ex.py code is an example of basic ParMOO + libEnsemble usage from the :doc:`Extras and Plugins <../extras>` section of the User Guide.

.. literalinclude:: ../../examples/libe_basic_ex.py
    :language: python

You can run the above script with MPI

mpirun -np N python3 libe_basic_ex.py

or with Python's built-in multiprocessing module.

python3 libe_basic_ex.py --comms local --nworkers N

The resulting output is shown below.

.. literalinclude:: ../../examples/libe_basic_ex.out