Class RealScalarSubFunction

    • Constructor Detail

      • RealScalarSubFunction

        public RealScalarSubFunction​(RealScalarFunction f,
                                     Map<Integer,​Double> fixing)
        Construct a scalar sub-function.
        Parameters:
        f - the unrestricted/original function
        fixing - the values held fixed for a subset of variables
    • Method Detail

      • evaluate

        public Double evaluate​(Vector x)
        Description copied from interface: Function
        Evaluate the function f at x, where x is from the domain.
        Specified by:
        evaluate in interface Function<Vector,​Double>
        Parameters:
        x - x
        Returns:
        f(x)
      • evaluate

        public double evaluate​(double x)
        Evaluate the function f at x.
        Parameters:
        x - x
        Returns:
        f(x)