Class PositiveConstraint
A constraint imposing positivity on all arguments.
public sealed class PositiveConstraint : Constraint
- Inheritance
-
PositiveConstraint
- Inherited Members
Constructors
PositiveConstraint()
public PositiveConstraint()
Methods
LowerBoundCore(Vector)
The lower bound for the given parameters, which LowerBound(Vector) checks: by default none.
protected override Vector LowerBoundCore(Vector parameters)
Parameters
parametersVectorThe parameters.
Returns
- Vector
A new vector, the most negative double in each element by default.
Test(Vector)
Whether the parameters satisfy the constraint.
public override bool Test(Vector p)
Parameters
pVectorThe parameters.
Returns
UpperBoundCore(Vector)
The upper bound for the given parameters, which UpperBound(Vector) checks: by default none.
protected override Vector UpperBoundCore(Vector parameters)
Parameters
parametersVectorThe parameters.
Returns
- Vector
A new vector, the largest double in each element by default.