Example usage for org.apache.commons.math.optimization RealPointValuePair RealPointValuePair

List of usage examples for org.apache.commons.math.optimization RealPointValuePair RealPointValuePair

Introduction

In this page you can find the example usage for org.apache.commons.math.optimization RealPointValuePair RealPointValuePair.

Prototype

public RealPointValuePair(final double[] point, final double value) 

Source Link

Document

Build a point/objective function value pair.

Usage

From source file:com.opengamma.analytics.math.util.wrapper.CommonsMathWrapperTest.java

@Test
public void testRealPointValuePair() {
    final double[] x = new double[] { 1, 2, 3 };
    final double[] y = CommonsMathWrapper.unwrap(new RealPointValuePair(x, 0));
    assertArrayEquals(x, y, 0);// w w w. ja v  a 2  s  .c  om
}