fides/minimize.py
def make_non_degenerate(self, eps=1e2 * np.spacing(1)) -> None:
        """
        Ensures that x is non-degenerate, this should only be necessary for
        initial points.

        :param eps: degeneracy threshold
        """
        if np.min(np.abs(self.ub - self.x)) < eps or \
                np.min(np.abs(self.x - self.lb)) < eps:
            upperi = (self.ub - self.x) < eps
            loweri = (self.x - self.lb) < eps
            self.x[upperi] = self.x[upperi] - eps
            self.x[loweri] = self.x[loweri] + eps

        Ensures that x is non-degenerate, this should only be necessary for
        initial points.

        :param eps: degeneracy threshold
        
Ensures that x is non-degenerate, this should only be necessary for
initial points.
Ensures that x is non - degenerate this should only be necessary for initial points .
def make_non_degenerate(self, eps=1e2 * np.spacing(1)) -> None:
        if np.min(np.abs(self.ub - self.x)) < eps or \
                np.min(np.abs(self.x - self.lb)) < eps:
            upperi = (self.ub - self.x) < eps
            loweri = (self.x - self.lb) < eps
            self.x[upperi] = self.x[upperi] - eps
            self.x[loweri] = self.x[loweri] + eps
def make_non_degenerate ( self , eps = 1e2 * np . spacing ( 1 ) ) -> None : if np . min ( np . abs ( self . ub - self . x ) ) < eps or np . min ( np . abs ( self . x - self . lb ) ) < eps : upperi = ( self . ub - self . x ) < eps loweri = ( self . x - self . lb ) < eps self . x [ upperi ] = self . x [ upperi ] - eps self . x [ loweri ] = self . x [ loweri ] + eps
Ensures that x is non-degenerate, this should only be necessary for
initial points.
Ensures that x is non - degenerate this should only be necessary for initial points .
"""
        Ensures that x is non-degenerate, this should only be necessary for
        initial points.

        :param eps: degeneracy threshold
        """
self
eps
None