Click or drag to resize

ILinearConstraintCoefficients Interface

Interface for the coefficients for a linear constraint in a non-linear optimization problem. The interface is an abstraction of a vector of real numbers representing the coefficients of a linear constraint and thus defines the indexer property [int index]. This interface allows for both sparse and dense implementations.

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
public interface ILinearConstraintCoefficients : ICloneable, 

The ILinearConstraintCoefficients type exposes the following members.

Public propertyItem Gets the coefficient value at the specified index. returns 0.0 on indices not listed in NonzeroIndices
Public propertyNumberOfCoefficients The total length of the coefficient vector represented by self. Note that this is not the number of non-zero coefficients, but the total number of coefficients.
Public methodAsDoubleVector Method to convert self to a dense vector.
Public methodDotProduct Function for forming the dot product of self with another vector.
Public methodNonzeroIndices Enumerator over the indices of the non-zero coefficients.
See Also