.. _method-asynch_pattern_search-constraint_penalty: """""""""""""""""" constraint_penalty """""""""""""""""" Multiplier for the penalty function **Specification** - *Alias:* None - *Arguments:* None - *JSON argument key:* None - *Default:* 1.0 **Description** Most SCOLIB optimizers treat constraints with a simple penalty scheme that adds ``constraint_penalty`` times the sum of squares of the constraint violations to the objective function. The default value of ``constraint_penalty`` is 1000.0, except for methods that dynamically adapt their constraint penalty, for which the default value is 1.0.