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 = '7bc91cb3-f86b-4849-a940-e1a93167c140', const: bool = False, deterministic_resolution: ParameterResolution | str = ParameterResolution.CONTINUOUS, range: Sequence[float, float] | Sequence[Sequence[float]] = (-1, 1))#
Stores optimization parameter data.
Methods
__init__
([name, reference_value, ...])Create a new instance of
OptimizationParameter
.from_dict
(par_dict)Create an instance of the
OptimizationParameter
class from optiSLang output.to_dict
()Convert an instance of the
OptimizationParameter
to a dictionary.Attributes
Whether the value for the parameter is a constant.
Type of the deterministic resolution.
ID of the parameter.
Name of the parameter.
Range of the optimization parameter.
Reference value of the parameter.
Type of the reference value.
Type of the parameter.