src.costs.perimeter_shape_gradient

Module Contents

Classes

Perimeter_shape_gradient

Non linear penalization on the perimeter (upper bound)

class src.costs.perimeter_shape_gradient.Perimeter_shape_gradient(path_config_file=None, config=None)

Bases: src.costs.abstract_shape_gradient.Abstract_shape_gradient

Non linear penalization on the perimeter (upper bound)

cost(self, S)
shape_gradient(self, S, theta_peturbation)

The implementation of the shape gradient

Parameters
  • S (for now only Surface_Fourier are supported) – a surface

  • theta_pertubation (dictionary) – see get_theta_perturbation of a surface