ConstraintCriterion#

class ansys.optislang.core.project_parametric.ConstraintCriterion(name: str = '', expression: str = '0', expression_value: tuple | bool | float | complex | list | dict | None = None, expression_value_type: CriterionValueType | None = None, criterion: ComparisonType | str = ComparisonType.LESSEQUAL, limit_expression: str = '0', limit_expression_value: tuple | bool | float | complex | list | dict | None = None, limit_expression_value_type: CriterionValueType | None = None, value: tuple | bool | float | complex | list | dict | None = None, value_type: CriterionValueType | None = None)#

Stores constraint criterion data.

Methods

ConstraintCriterion.from_dict(criterion_dict)

Create an instance of the Criterion class from actor properties.

ConstraintCriterion.to_dict()

Convert an instance of the ConstraintCriterion class to a dictionary.

Attributes

ConstraintCriterion.criterion

Type of the criterion.

ConstraintCriterion.expression

Expression for value.

ConstraintCriterion.expression_value

Return expression value.

ConstraintCriterion.expression_value_type

Type of the expression value.

ConstraintCriterion.limit_expression

Expression for limit value.

ConstraintCriterion.limit_expression_value

Return limit value.

ConstraintCriterion.limit_expression_value_type

Return type of the limit value.

ConstraintCriterion.name

Name of the criterion.

ConstraintCriterion.type

Type of the criterion.

ConstraintCriterion.value

Return criterion value.

ConstraintCriterion.value_type

Return type of the criterion value.