List of usage examples for org.apache.commons.math3.analysis.differentiation JacobianFunction JacobianFunction
public JacobianFunction(final MultivariateDifferentiableVectorFunction f)
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(); }