Class VariableSet
Class defining a set of variables with the same dimension (i.e. variables with the same number of components).
Namespace: BRIDGES.Solvers.GuidedProjection
Assembly: BRIDGES.dll
Syntax
public class VariableSet : object
Properties
| Improve this Doc View SourceSetIndex
Gets the index of the set in the GuidedProjectionAlgorithm's list of variable sets.
Declaration
public int SetIndex { get; }
Property Value
Type | Description |
---|---|
Int32 |
VariableCount
Gets the number of variables in the set.
Declaration
public int VariableCount { get; }
Property Value
Type | Description |
---|---|
Int32 |
VariableDimension
Gets the common dimension of variables in the set.
Declaration
public int VariableDimension { get; }
Property Value
Type | Description |
---|---|
Int32 |
Methods
| Improve this Doc View SourceAddVariable(Double[])
Adds a variable to the set.
Declaration
public void AddVariable(params double[] components)
Parameters
Type | Name | Description |
---|---|---|
Double[] | components | Components of the variables to add. |
GetVariable(Int32)
Returns the components of the variable at the given index.
Declaration
public double[] GetVariable(int variableIndex)
Parameters
Type | Name | Description |
---|---|---|
Int32 | variableIndex | Index of the variable to get. |
Returns
Type | Description |
---|---|
Double[] | The components of the variable at the index. |