![]() |
Dakota Reference Manual
Version 6.16
Explore and Predict with Confidence
|
Run Python through a Pybind11-based direct interface - requires a special Dakota build
Alias: none
Argument(s): none
Child Keywords:
Required/Optional | Description of Group | Dakota Keyword | Dakota Keyword Description | |
---|---|---|---|---|
Optional | numpy | Enable the use of numpy in Dakota's Python interface |
Dakota supports a library-linked interface to Python, but it must be explicitly enabled when compiling Dakota from source. Consult the Users Manual [4] for discussion, examples, and documentation of the dictionary-based API. Contact the Dakota users mailing list for assistance building and using Dakota with these interfaces.
The analysis_drivers keyword specifies a Python module:function which implements the parameter to response mapping. List data structures are the default, but NumPy is also supported, if enabled in the build.
Batch evaluations (batch) are supported through a list of dictionaries.
See dakota/share/dakota/examples/official/drivers/Python/linked
and dakota/share/dakota/examples/official/drivers/Python/linked_di
for an example of its integration with dakota.interfacing
.