class_docstr: A ConstrainedFunction class used to hold constrained single-objective functions.
class_docstr_tok: ["A","ConstrainedFunction","class","used","to","hold","constrained","single-objective","functions","."]
docstr: Penalization factor.
docstr_tok: ["Penalization","factor","."]
code: def penalty(self) -> float:
      """Penalization factor."""
  
      return self._penalty
  
file_path: opytimizer/opytimizer/functions/constrained.py
imports: from typing import List
  import numpy
  import opytimizer.utils.exception
  from opytimizer.core import Function
  from opytimizer.utils import logging
label_desc: Use image node_id 4 for calling the ConstrainedFunction obj's underlying member method code with example usage: obj.penalty() and returns: self