:py:mod:`src.costs.perimeter_shape_gradient` ============================================ .. py:module:: src.costs.perimeter_shape_gradient Module Contents --------------- Classes ~~~~~~~ .. autoapisummary:: src.costs.perimeter_shape_gradient.Perimeter_shape_gradient .. py:class:: Perimeter_shape_gradient(path_config_file=None, config=None) Bases: :py:obj:`src.costs.abstract_shape_gradient.Abstract_shape_gradient` Non linear penalization on the perimeter (upper bound) .. py:method:: cost(self, S) .. py:method:: shape_gradient(self, S, theta_peturbation) The implementation of the shape gradient :param S: a surface :type S: for now only Surface_Fourier are supported :param theta_pertubation: see `get_theta_perturbation of a surface` :type theta_pertubation: dictionary