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: Constraints to be applied to the fitness function.
docstr_tok: ["Constraints","to","be","applied","to","the","fitness","function","."]
code: def constraints(self) -> List[callable]:
      """Constraints to be applied to the fitness function."""
  
      return self._constraints
  
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 2 for calling the ConstrainedFunction obj's underlying member method code with example usage: obj.constraints() and returns: self