pymead.optimization.objectives_and_constraints.Constraint#

class Constraint(func_str: str)[source]#

Bases: ObjectiveConstraint

Subclass of ObjectiveConstraint simply specifying the object as an Constraint.

Parameters:

func_str (str) – Function string to pass to ObjectiveConstraint’s __init__.

__init__(func_str: str)[source]#

Objective or Constraint used in shape optimization. Allows for dynamic updates and equation validity checking inside the GUI.

Parameters:

func_str (str) – Function string used to define the Objective or Constraint from the aero_data dictionary output from the calc_aero_data.

Methods