ObjectiveCriterion#

class ansys.optislang.core.project_parametric.ObjectiveCriterion(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.MIN, value: tuple | bool | float | complex | list | dict | None = None, value_type: CriterionValueType | None = None)#

Stores objective criterion data.

Methods

ObjectiveCriterion.from_dict(criterion_dict)

Create an instance of the Criterion class from actor properties.

ObjectiveCriterion.to_dict()

Convert an instance of the ObjectiveCriterion class to a dictionary.

Attributes

ObjectiveCriterion.criterion

Type of the criterion.

ObjectiveCriterion.expression

Expression for value.

ObjectiveCriterion.expression_value

Return expression value.

ObjectiveCriterion.expression_value_type

Type of the expression value.

ObjectiveCriterion.name

Name of the criterion.

ObjectiveCriterion.type

Type of the criterion.

ObjectiveCriterion.value

Return criterion value.

ObjectiveCriterion.value_type

Return type of the criterion value.