OptimizationParameter#

class ansys.optislang.core.project_parametric.OptimizationParameter(name: str = '', reference_value: bool | float | str | None = 0, reference_value_type: ParameterValueType = ParameterValueType.REAL, id: str | None = None, const: bool = False, deterministic_resolution: ParameterResolution | str = ParameterResolution.CONTINUOUS, range: Sequence[float, float] | Sequence[Sequence[float]] = (-1, 1))#

Stores optimization parameter data.

Methods

OptimizationParameter.from_dict(par_dict)

Create an instance of the Parameter class from optiSLang output.

OptimizationParameter.to_dict()

Convert an instance of the OptimizationParameter to a dictionary.

Attributes

OptimizationParameter.const

Whether the value for the parameter is a constant.

OptimizationParameter.deterministic_resolution

Type of the deterministic resolution.

OptimizationParameter.id

ID of the parameter.

OptimizationParameter.name

Name of the parameter.

OptimizationParameter.range

Range of the optimization parameter.

OptimizationParameter.reference_value

Reference value of the parameter.

OptimizationParameter.reference_value_type

Type of the reference value.

OptimizationParameter.type

Type of the parameter.