24#ifndef quantlib_optimization_projectedconstraint_h
25#define quantlib_optimization_projectedconstraint_h
40 const Array& parameterValues,
41 const std::vector<bool>& fixParameters)
63 const Array ¶meterValues,
64 const std::vector<bool> &fixParameters)
1-D array used in linear algebra.
Base class for constraint implementations.
bool test(const Array &p) const
Array lowerBound(const Array ¶ms) const
Array upperBound(const Array ¶ms) const
Impl(Constraint constraint, const Array ¶meterValues, const std::vector< bool > &fixParameters)
bool test(const Array ¶ms) const override
Tests if params satisfy the constraint.
const Projection projection_
Impl(Constraint constraint, const Projection &projection)
Array lowerBound(const Array ¶ms) const override
Returns lower bound for given parameters.
const Constraint constraint_
Array upperBound(const Array ¶ms) const override
Returns upper bound for given parameters.
ProjectedConstraint(const Constraint &constraint, const Projection &projection)
ProjectedConstraint(const Constraint &constraint, const Array ¶meterValues, const std::vector< bool > &fixParameters)
virtual Array include(const Array &projectedParameters) const
returns whole set of parameters corresponding to the set
virtual Array project(const Array ¶meters) const
returns the subset of free parameters corresponding
Abstract constraint class.