VariableCriterion#
- class ansys.optislang.core.project_parametric.VariableCriterion(name: str = '', expression: str = '0', expression_value: tuple | bool | float | complex | list | dict | None = None, expression_value_type: CriterionValueType | None = None, value: tuple | bool | float | complex | list | dict | None = None, value_type: CriterionValueType | None = None)#
Stores variable criterion data.
Methods
__init__
([name, expression, ...])Create a new instance of
VariableCriterion
class.from_dict
(criterion_dict)Create an instance of the
VariableCriterion
class from optiSLang output.to_dict
()Convert an instance of the
VariableCriterion
class to a dictionary.Attributes
Type of the criterion.
Expression for value.
Return expression value.
Type of the expression value.
Name of the criterion.
Type of the criterion.
Return criterion value.
Return type of the criterion value.