Dakota Reference Manual: string

| Dakota Reference Manual Version 6.15 Explore and Predict with Confidence

- Main Page
- Related Pages

All Pages
string

String-valued discrete design set variables

## Topics

This keyword is related to the topics:

- discrete_variables
- design_variables

## Specification

Alias: none

Argument(s): INTEGER

Default: no discrete design set string variables

Child Keywords:

| Required/Optional | Description of Group | Dakota Keyword | Dakota Keyword Description
--- | --- | --- | --- | ---
| Optional | elements_per_variable | Number of admissible elements for each set variable
| Required | elements | The permissible values for each discrete variable
| Optional | adjacency_matrix | 1-0 matrix defining which categorical variable levels are related.
| Optional | initial_point | Initial values for variables
| Optional | descriptors | Labels for the variables

## Description

Discrete design variables whose values come from a specified set of admissible strings. The details of how to specify this discrete variable are located on the discrete_variables page. Each string element value must be quoted and may contain alphanumeric, dash, underscore, and colon. White space, quote characters, and backslash/metacharacters are not permitted.

## Examples

Two string variables whose values will be selected from the set of provided elements. The first variable, 'linear solver', takes on values from a set of three possible elements and the second variable, 'mesh_file', from a set of two possible elements.

    discrete_design_set
      string 2
        descriptors           'linear_solver'  'mesh_file'
        elements_per_variable 3                2
        elements              'cg' 'gmres' 'direct'
                              'mesh64.exo' 'mesh128.exo'