@Test
public void testComputeValueAndJacobian() {
//setup
final RealVector point = new ArrayRealVector(new double[]{1, 2});
Evaluation evaluation = new LeastSquaresBuilder()
.weight(new DiagonalMatrix(new double[]{16, 4}))
.model(new MultivariateJacobianFunction() {
public Pair<RealVector, RealMatrix> value(RealVector actualPoint) {
//verify correct values passed in
Assert.assertArrayEquals(
point.toArray(), actualPoint.toArray(), Precision.EPSILON);