MixedParameter#

class ansys.optislang.core.project_parametric.MixedParameter(name: str = '', reference_value: float = 0.0, id: str | None = None, const: bool = False, deterministic_resolution: ParameterResolution | str = ParameterResolution.CONTINUOUS, range: Tuple[float, float] | Sequence[float] = (-1.0, 1.0), stochastic_resolution: ParameterResolution | str = ParameterResolution.MARGINALDISTRIBUTION, distribution_type: DistributionType | str = DistributionType.NORMAL, distribution_parameters: Sequence[float] | None = None, statistical_moments: Sequence[float] | None = None, cov: float | None = None)#

Stores mixed parameter data.

Methods

MixedParameter.from_dict(par_dict)

Create an instance of the Parameter class from optiSLang output.

MixedParameter.to_dict()

Convert an instance of the MixedParameter class to a dictionary.

Attributes

MixedParameter.const

Whether the value for the parameter is a constant.

MixedParameter.cov

COV of the distribution.

MixedParameter.deterministic_resolution

Type of the deterministic resolution.

MixedParameter.distribution_parameters

Parameters of the distribution.

MixedParameter.distribution_type

Type of the distribution.

MixedParameter.id

ID of the parameter.

MixedParameter.name

Name of the parameter.

MixedParameter.range

Range of the mixed parameter.

MixedParameter.reference_value

Reference value of the parameter.

MixedParameter.reference_value_type

Type of the reference value.

MixedParameter.statistical_moments

Statistical moments of the distribution.

MixedParameter.stochastic_resolution

Type of the stochastic resolution.

MixedParameter.type

Type of the parameter.