csdms

Dakota response types

Responses are the description of the model output data returned to Dakota upon evaluation of an interface.

Responses base class

An abstract base class for all Dakota responses.

class dakotathon.responses.base.ResponsesBase(responses='response_functions', response_descriptors=(), gradients='no_gradients', hessians='no_hessians', **kwargs)[source]

Bases: object

Describe features common to all Dakota responses.

__init__(responses='response_functions', response_descriptors=(), gradients='no_gradients', hessians='no_hessians', **kwargs)[source]

Create a default response.

responses : str, optional
The Dakota response type (default is ‘response_functions’).
response_descriptors : str or tuple or list of str, optional
Labels attached to the responses.
gradients : str, optional
Gradient type (default is ‘no_gradients’).
hessians : str, optional
Hessian type (default is ‘no_hessians’).
__str__()[source]

Define the responses block of a Dakota input file.

response_descriptors

Labels attached to Dakota responses.

Response functions

Implementation of the Dakota response_function response type.

class dakotathon.responses.response_functions.ResponseFunctions(response_descriptors=('y1', ), response_files=(), response_statistics=('mean', ), **kwargs)[source]

Bases: dakotathon.responses.base.ResponsesBase

Define attributes for Dakota response functions.

__init__(response_descriptors=('y1', ), response_files=(), response_statistics=('mean', ), **kwargs)[source]

Create a response using response functions.

response_descriptors : str or tuple or list of str, optional
Labels attached to the responses.
response_files : str or tuple or list of str, optional
Model output files from which responses are calculated.
response_statistics : str or tuple or list of str, optional
Statistics used to generate responses.
**kwargs
Optional keyword arguments.

Create a ResponseFunctions instance:

>>> f = ResponseFunctions()
__str__()[source]

Define the responses block of a Dakota input file.

dakotathon.responses.base.ResponsesBase.__str__

response_files

Model output files used in Dakota responses.

response_statistics

Statistics used to calculate Dakota responses.