Class VectorLength
Constraint enforcing a vector variable v to have a given length l (computed with euclidean norm).
Implements
Namespace: BRIDGES.Solvers.GuidedProjection.QuadraticConstraintTypes
Assembly: BRIDGES.dll
Syntax
public class VectorLength : object, IQuadraticConstraintType
Remarks
The vector xReduced = [v], and Ci = l2.
Constructors
| Improve this Doc View SourceVectorLength(Double, Int32)
Initialises a new instance of the VectorLength class.
Declaration
public VectorLength(double targetLength, int spaceDimension = 3)
Parameters
Type | Name | Description |
---|---|---|
Double | targetLength | Target length for the vector. |
Int32 | spaceDimension | Dimension of the space containing the vector. |
Remarks
The vector xReduced = [v], and Ci = l2.
Properties
| Improve this Doc View SourceCi
Gets the scalar value Ci of the energy.
Declaration
public double Ci { get; }
Property Value
Type | Description |
---|---|
Double |
Remarks
The vector xReduced = [v], and Ci = l2.
LocalBi
Gets the local vector Bi of the energy.
Declaration
public SparseVector LocalBi { get; }
Property Value
Type | Description |
---|---|
SparseVector |
Remarks
The vector xReduced = [v], and Ci = l2.
LocalHi
Gets the local symmetric matrix Hi of the energy.
Declaration
public SparseMatrix LocalHi { get; }
Property Value
Type | Description |
---|---|
SparseMatrix |
Remarks
The vector xReduced = [v], and Ci = l2.