Class VectorialPointValuePair

    • Constructor Detail

      • VectorialPointValuePair

        public VectorialPointValuePair​(double[] point,
                                       double[] value)
        Build a point/objective function value pair.
        Parameters:
        point - point coordinates (the built instance will store a copy of the array, not the array passed as argument)
        value - value of an objective function at the point
      • VectorialPointValuePair

        public VectorialPointValuePair​(double[] point,
                                       double[] value,
                                       boolean copyArray)
        Build a point/objective function value pair.
        Parameters:
        point - point coordinates (the built instance will store a copy of the array, not the array passed as argument)
        value - value of an objective function at the point
        copyArray - if true, the input arrays will be copied, otherwise they will be referenced
    • Method Detail

      • getPoint

        public double[] getPoint()
        Get the point.
        Returns:
        a copy of the stored point
      • getPointRef

        public double[] getPointRef()
        Get a reference to the point.

        This method is provided as a convenience to avoid copying the array, the elements of the array should not be modified.

        Returns:
        a reference to the internal array storing the point
      • getValue

        public double[] getValue()
        Get the value of the objective function.
        Returns:
        a copy of the stored value of the objective function
      • getValueRef

        public double[] getValueRef()
        Get a reference to the value of the objective function.

        This method is provided as a convenience to avoid copying the array, the elements of the array should not be modified.

        Returns:
        a reference to the internal array storing the value of the objective function