.. _variables-discrete_design_set-real: """" real """" Real-valued discrete design variables **Topics** - :ref:`discrete_variables ` - :ref:`design_variables ` .. toctree:: :hidden: :maxdepth: 1 variables-discrete_design_set-real-elements_per_variable variables-discrete_design_set-real-elements variables-discrete_design_set-real-categorical variables-discrete_design_set-real-initial_point variables-discrete_design_set-real-descriptors **Specification** - *Alias:* None - *Arguments:* INTEGER - *JSON argument key:* count **Child Keywords:** +-------------------------+------------------------+--------------------+--------------------------------+------------------------------------------------------------+ | Required/Optional | Description of Group | JSON Group Key | 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 | | | `categorical`__ | Whether the set-valued variables are categorical or | | | | | | relaxable | +-------------------------+------------------------+--------------------+--------------------------------+------------------------------------------------------------+ | Optional | | | `initial_point`__ | Initial values for variables | +-------------------------+------------------------+--------------------+--------------------------------+------------------------------------------------------------+ | Optional | | | `descriptors`__ | Labels for the variables | +-------------------------+------------------------+--------------------+--------------------------------+------------------------------------------------------------+ .. __: variables-discrete_design_set-real-elements_per_variable.html __ variables-discrete_design_set-real-elements.html __ variables-discrete_design_set-real-categorical.html __ variables-discrete_design_set-real-initial_point.html __ variables-discrete_design_set-real-descriptors.html **Description** A design variable whose values come from a specified set of admissible reals. See :ref:`variables:usage` for tips on specifying discrete set variables. **Examples** Two continuous, restricted variables whose values will be selected from the following sets during the search for an optimal design. :math:`y1 \in \{0.25,1.25, 2.25, 3.25, 4.25\}` , :math:`y2 \in \{0,5\}` .. tab:: Freeform .. code-block:: dakota variables discrete_design_set real 2 descriptors 'y1' 'y2' elements_per_variable 5 2 elements 0.25 1.25 2.25 3.25 4.25 0.0 5.0 .. tab:: JSON .. code-block:: json { "variables": [ { "discrete_design_set": { "real": { "count": 2, "descriptors": ["y1", "y2"], "elements_per_variable": [5, 2], "elements": [0.25, 1.25, 2.25, 3.25, 4.25, 0.0, 5.0] } } } ] }