Class PositivityConstraint

    • Constructor Detail

      • PositivityConstraint

        public PositivityConstraint()
    • Method Detail

      • apply

        public double apply​(double parameterToTest)
        Description copied from interface: ScalarConstraint
        Forces the parameter to respect a certain condition.
        Specified by:
        apply in interface ScalarConstraint
        Overrides:
        apply in class BoundConstraint
        Parameters:
        parameterToTest - The value to which the constraint should be applied.
        Returns:
        the parameter after application of the constraint.