Table of Contents

Class PositiveConstraint

Namespace
NanoQL.Numerics
Assembly
NanoQL.dll

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

parameters Vector

The 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

p Vector

The parameters.

Returns

bool

true when they do.

UpperBoundCore(Vector)

The upper bound for the given parameters, which UpperBound(Vector) checks: by default none.

protected override Vector UpperBoundCore(Vector parameters)

Parameters

parameters Vector

The parameters.

Returns

Vector

A new vector, the largest double in each element by default.