Example usage for org.apache.commons.math3.analysis.differentiation JacobianFunction JacobianFunction

List of usage examples for org.apache.commons.math3.analysis.differentiation JacobianFunction JacobianFunction

Introduction

In this page you can find the example usage for org.apache.commons.math3.analysis.differentiation JacobianFunction JacobianFunction.

Prototype

public JacobianFunction(final MultivariateDifferentiableVectorFunction f) 

Source Link

Document

Simple constructor.

Usage

From source file:de.tuberlin.uebb.jdae.solvers.OptimalitySolver.java

@Override
public double[] solve(int maxEval, MultivariateDifferentiableVectorFunction f, double[] startValue) {
    final double[] zeros = startValue.clone();
    final double[] ones = startValue.clone();
    Arrays.fill(zeros, 0.0);/*from   www .j  a  v a  2s . co  m*/
    Arrays.fill(ones, 1.0);

    return optim.optimize(new MaxEval(maxEval), new InitialGuess(startValue), new Target(zeros),
            new Weight(ones), new ModelFunction(f), new ModelFunctionJacobian(new JacobianFunction(f)))
            .getPoint();
}