Class LinearObjectiveFunction

    • Constructor Detail

      • LinearObjectiveFunction

        public LinearObjectiveFunction​(double[] coefficients,
                                       double constantTerm)
        Parameters:
        coefficients - Coefficients for the linear equation being optimized.
        constantTerm - Constant term of the linear equation.
      • LinearObjectiveFunction

        public LinearObjectiveFunction​(RealVector coefficients,
                                       double constantTerm)
        Parameters:
        coefficients - Coefficients for the linear equation being optimized.
        constantTerm - Constant term of the linear equation.
    • Method Detail

      • getCoefficients

        public RealVector getCoefficients()
        Gets the coefficients of the linear equation being optimized.
        Returns:
        coefficients of the linear equation being optimized.
      • getConstantTerm

        public double getConstantTerm()
        Gets the constant of the linear equation being optimized.
        Returns:
        constant of the linear equation being optimized.
      • value

        public double value​(double[] point)
        Computes the value of the linear equation at the current point.
        Specified by:
        value in interface MultivariateFunction
        Parameters:
        point - Point at which linear equation must be evaluated.
        Returns:
        the value of the linear equation at the current point.
      • value

        public double value​(RealVector point)
        Computes the value of the linear equation at the current point.
        Parameters:
        point - Point at which linear equation must be evaluated.
        Returns:
        the value of the linear equation at the current point.