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.3
Syntax
public interface ILinearConstraintCoefficients : ICloneable, 
	IEquatable<ILinearConstraintCoefficients>

The ILinearConstraintCoefficients type exposes the following members.

Properties
  NameDescription
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.
Top
Methods
  NameDescription
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.
Top
See Also