Documentation of 'org.apache.commons.math3.optim.linear.LinearObjectiveFunction' Java class
LinearObjectiveFunction
org.apache.commons.math3.optim.linear

Class LinearObjectiveFunction

  • All Implemented Interfaces:
    java.io.Serializable, MultivariateFunction, OptimizationData


    public class LinearObjectiveFunction
    extends java.lang.Object
    implements MultivariateFunction, OptimizationData, java.io.Serializable
    An objective function for a linear optimization problem.

    A linear objective function has one the form:

     c1x1 + ... cnxn + d
     
    The ci and d are the coefficients of the equation, the xi are the coordinates of the current point.

    Since:
    2.0
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      boolean equals(java.lang.Object other)
      RealVector getCoefficients()
      Gets the coefficients of the linear equation being optimized.
      double getConstantTerm()
      Gets the constant of the linear equation being optimized.
      int hashCode()
      double value(double[] point)
      Computes the value of the linear equation at the current point.
      double value(RealVector point)
      Computes the value of the linear equation at the current point.
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, toString, wait, wait, wait
    • 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.
      • equals

        public boolean equals(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.