@@ -22,8 +22,11 @@ and inference problems on the world's leading supercomputers such as Frontier, A
2222
2323`Quickstart `_
2424
25- **New: ** Try out the |ScriptCreator | to generate customized scripts for running
26- ensembles with your MPI applications.
25+ **New: ** libEnsemble nows supports the `gest-api `_ generator standard, and can run with
26+ Optimas and Xopt generators.
27+
28+ The |ScriptCreator | to generate customized scripts for running ensembles with your
29+ MPI applications.
2730
2831Installation
2932============
@@ -44,52 +47,46 @@ and an exit condition. Run the following four-worker example via ``python this_f
4447
4548 import numpy as np
4649
47- from gest_api.vocs import VOCS
48-
4950 from libensemble import Ensemble
50- from libensemble.gen_classes .sampling import UniformSample
51+ from libensemble.gen_funcs .sampling import uniform_random_sample
5152 from libensemble.sim_funcs.six_hump_camel import six_hump_camel
5253 from libensemble.specs import ExitCriteria, GenSpecs, LibeSpecs, SimSpecs
5354
5455 if __name__ == " __main__" :
5556
5657 libE_specs = LibeSpecs(nworkers = 4 )
5758
58- variables_objectives = VOCS(
59- variables = {
60- " x0" : [- 3 , 3 ],
61- " x1" : [- 2 , 2 ],
62- },
63- objectives = {" f" : " EXPLORE" },
64- )
65-
66- generator = UniformSample(vocs = variables_objectives)
67-
6859 sim_specs = SimSpecs(
6960 sim_f = six_hump_camel,
70- vocs = variables_objectives,
61+ inputs = [" x" ],
62+ outputs = [(" f" , float )],
7163 )
7264
7365 gen_specs = GenSpecs(
74- generator = generator,
75- vocs = variables_objectives,
66+ gen_f = uniform_random_sample,
67+ outputs = [(" x" , float , 2 )],
68+ user = {
69+ " gen_batch_size" : 50 ,
70+ " lb" : np.array([- 3 , - 2 ]),
71+ " ub" : np.array([3 , 2 ]),
72+ },
7673 )
7774
7875 exit_criteria = ExitCriteria(sim_max = 100 )
7976
80- ensemble = Ensemble(
77+ sampling = Ensemble(
8178 libE_specs = libE_specs,
8279 sim_specs = sim_specs,
8380 gen_specs = gen_specs,
8481 exit_criteria = exit_criteria,
8582 )
8683
87- ensemble .add_random_streams()
88- ensemble .run()
84+ sampling .add_random_streams()
85+ sampling .run()
8986
90- if ensemble .is_manager:
91- ensemble .save_output(__file__ )
92- print (" Some output data:\n " , ensemble .H[[" x" , " f" ]][:10 ])
87+ if sampling .is_manager:
88+ sampling .save_output(__file__ )
89+ print (" Some output data:\n " , sampling .H[[" x" , " f" ]][:10 ])
9390
9491 |Inline Example |
9592
@@ -106,6 +103,8 @@ Try some other examples live in Colab.
106103+---------------------------------------------------------------+-------------------------------------+
107104| Surrogate model generation with gpCAM. | |Surrogate Modeling | |
108105+---------------------------------------------------------------+-------------------------------------+
106+ | Bayesian Optimization with Xopt. | |Bayesian Optimization with Xopt | |
107+ +---------------------------------------------------------------+-------------------------------------+
109108
110109There are many more examples in the `regression tests `_ and `Community Examples repository `_.
111110
@@ -167,6 +166,7 @@ Resources
167166.. _conda-forge : https://conda-forge.org/
168167.. _Contributions : https://github.com/Libensemble/libensemble/blob/main/CONTRIBUTING.rst
169168.. _docs : https://libensemble.readthedocs.io/en/main/advanced_installation.html
169+ .. _gest-api : https://gest-api.readthedocs.io
170170.. _GitHub : https://github.com/Libensemble/libensemble
171171.. _libEnsemble mailing list : https://lists.mcs.anl.gov/mailman/listinfo/libensemble
172172.. _libEnsemble Slack page : https://libensemble.slack.com
@@ -192,6 +192,9 @@ Resources
192192.. |Surrogate Modeling | image :: https://colab.research.google.com/assets/colab-badge.svg
193193 :target: https://colab.research.google.com/github/Libensemble/libensemble/blob/develop/examples/tutorials/gpcam_surrogate_model/gpcam.ipynb
194194
195+ .. |Bayesian Optimization with Xopt | image :: https://colab.research.google.com/assets/colab-badge.svg
196+ :target: https://colab.research.google.com/github/Libensemble/libensemble/blob/develop/examples/tutorials/xopt_bayesian_gen/xopt_EI_example.ipynb
197+
195198.. |ScriptCreator | image :: https://img.shields.io/badge/Script_Creator-purple?logo=magic
196199 :target: https://libensemble.github.io/script-creator/
197200 :alt: Script Creator
0 commit comments