Package org.jquantlib.math.optimization

Examples of org.jquantlib.math.optimization.NoConstraint


        final List<Double> yMinExpected_ = new ArrayList<Double>();
        xMinExpected_.add(xMinExpected[xMinExpected.length-1]);
        yMinExpected_.add(xMinExpected[yMinExpected.length-1]);
        costFunctions_.add(new OneDimensionalPolynomDegreeN(coefficients));
        // Set Constraint for optimizers: unconstrained problem
        constraints_.add(new NoConstraint());
        // Set initial guess for optimizer
        final Array initialValue = new Array();
        initialValue.add(-100.0);
        initialValues_.add(initialValue);
        // Set end criteria for optimizer
View Full Code Here


        }

        final LevenbergMarquardt solver = new LevenbergMarquardt (ts.accuracy(), ts.accuracy(), ts.accuracy());

        final EndCriteria endCriteria = new EndCriteria (100, 10, 0.00, ts.accuracy(), 0.00);
        final Constraint solverConstraint = (forcePositive ? new PositiveConstraint() : new NoConstraint());
        int i = localisation -1;
        //FIXME, convexmonotone interpolation?
        final int dataAdjust = 1;

        for (; i < nInsts; ++ i) {
View Full Code Here

        final ProjectedCostFunction constrainedSABRError = new ProjectedCostFunction(costFunction, inversedTransformatedGuess, parameterAreFixed);

        final Array projectedGuess = new Array(constrainedSABRError.project(inversedTransformatedGuess));

        final NoConstraint constraint = new NoConstraint();
        final Problem problem = new Problem(constrainedSABRError, constraint, projectedGuess);
        itsCoeffs.SABREndCriteria_ = optMethod_.minimize(problem, endCriteria_);
        final Array projectedResult = new Array(problem.currentValue());
        final Array transfResult = new Array(constrainedSABRError.include(projectedResult));
View Full Code Here

        this.lambda_ = arguments_.get(3);

        // TODO: code review :: please verify against QL/C++ code :: Seems to be non-sense!

        this.a_ = new ConstantParameter(a, new PositiveConstraint());
        this.b_ = new ConstantParameter(b, new NoConstraint());
        this.sigma_ = new ConstantParameter(sigma, new PositiveConstraint());
        this.lambda_ = new ConstantParameter(lambda, new NoConstraint());
    }
View Full Code Here

    //
    // public constructors
    //

    public Parameter() {
        this.constraint = new NoConstraint();

        if (System.getProperty("EXPERIMENTAL") == null)
            throw new UnsupportedOperationException("Work in progress");
    }
View Full Code Here

    //
    // public constructors
    //

    public TermStructureFittingParameter(final Parameter.Impl impl) {
        super(0, impl, new NoConstraint());
    }
View Full Code Here

    public TermStructureFittingParameter(final Parameter.Impl impl) {
        super(0, impl, new NoConstraint());
    }

    public TermStructureFittingParameter(final Handle <YieldTermStructure> term) {
        super(0, new NumericalImpl(term), new NoConstraint());
    }
View Full Code Here

    //
    // public methods
    //

    public PiecewiseConstantParameter(final /* @Time */ double[] times) {
        super(times.length+1, new Impl(times), new NoConstraint());
    }
View Full Code Here

//FIXME: refactor

public class NullParameter extends Parameter {

    public NullParameter() {
        super(0, new Impl(), new NoConstraint());
    }
View Full Code Here

*/
public class BatesModel extends HestonModel {

    public BatesModel(final HestonProcess process, final double lambda, final double nu, final double delta) {
        super(process);
        arguments_.set(5, new ConstantParameter(nu, new NoConstraint()));
        arguments_.set(6, new ConstantParameter(delta, new PositiveConstraint()));
        arguments_.set(7, new ConstantParameter(lambda, new PositiveConstraint()));

        if (System.getProperty("EXPERIMENTAL") == null) {
            throw new UnsupportedOperationException("Work in progress");
View Full Code Here

TOP

Related Classes of org.jquantlib.math.optimization.NoConstraint

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.