PointConstraint
Specify local equality or bound constraints at one or more points.
Declaration
classdef PointConstraintOverview
Use PointConstraint to declare values or derivative conditions at specific points in one or more dimensions. A single constraint object can represent many points at once, which makes it suitable for both simple one-dimensional constraints and large masked regions in tensor fits.
Basic usage
c1 = PointConstraint.equal((0:10)', D=2, value=0);
c2 = PointConstraint.lowerBound([X(mask), Y(mask)], D=[0 0], value=0);
c3 = PointConstraint.equalOnMask({x,y}, islandMask, D=[0 0], value=0);
Topics
- Specify point constraints
PointConstraintCreate a pointwise equality or bound constraint.equalCreate a pointwise equality constraint.equalOnMaskCreate a pointwise equality constraint from a logical mask.lowerBoundCreate a pointwise lower-bound constraint.lowerBoundOnMaskCreate a pointwise lower-bound constraint from a logical mask.upperBoundCreate a pointwise upper-bound constraint.upperBoundOnMaskCreate a pointwise upper-bound constraint from a logical mask.
- Inspect point constraint properties
DDerivative orders as an N-by-D matrix.numConstraintsNumber of constrained points.numDimensionsNumber of constrained dimensions.pointsConstraint locations as an N-by-D point matrix.relationConstraint relation: “==”, “>=”, or “<=”.valueTarget values as an N-by-1 vector.