Skip to main content
This module provides classes to handle design criteria. A collection of criteria can be constructed in the following way:

class py_os_criterion.DesignStatus

Enumeration

EQUAL = py_os_criterion.DesignStatus.EQUAL

GREATEREQUAL = py_os_criterion.DesignStatus.GREATEREQUAL

GREATERLIMITSTATE = py_os_criterion.DesignStatus.GREATERLIMITSTATE

IGNORE = py_os_criterion.DesignStatus.IGNORE

LESSEQUAL = py_os_criterion.DesignStatus.LESSEQUAL

LESSLIMITSTATE = py_os_criterion.DesignStatus.LESSLIMITSTATE

MAX = py_os_criterion.DesignStatus.MAX

MIN = py_os_criterion.DesignStatus.MIN

class py_os_criterion.PyOSCriterion

__init__()

__init__(arg2: DesignStatus, arg3: str)

__init__(arg2: DesignStatus, arg3: str, arg4: str)

get_expression() → str

get_float_value() → float

get_left_expression() → str

get_right_expression() → str

get_type() → DesignStatus

get_value() → PyOSDesignEntry

is_constraint() → bool

is_equal_zero() → bool

is_equality_constraint() → bool

is_equality_constraint_violated() → bool

is_inequality_constraint() → bool

is_inequality_constraint_violated() → bool

is_objective() → bool

needs_eval() → bool

set_constraint(type: DesignStatus, expression_left: str, expression_right: str)

set_left(expression: str)

set_objective(type: DesignStatus, expression: str)

set_right(expression: str)

set_type(type: DesignStatus)

set_value(value: float)

set_value(value: PyOSDesignEntry)

class py_os_criterion.PyOSCriterionContainer

__getitem__(arg2: str) → PyOSCriterion

__init__()

__iter__() → object

__len__() → int

__setitem__(arg2: str) → PyOSCriterion

add(name: str, value: PyOSCriterion)

add_expression(name: str, value: PyOSCriterion)

remove(name: str)

remove_expression(name: str)