Click or drag to resize

MultivariableFunctionSolverIterationResultsIndexOfVariable Method (String)

Gets the index of the SolverVariableSettings with the matching variableName in the array that is returned by the GetConstraintSettings method. This index also corresponds to the variable value in the array returned by the GetVariablesUsed of every SolvableMultivariableFunctionResults stored in this set of results.

Namespace:  AGI.Foundation.NumericalMethods
Assembly:  AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 22.2.414.0 (22.2.414.0)
Syntax
public int IndexOfVariable(
	string variableName
)

Parameters

variableName
Type: SystemString
The name of the SolverConstraintSettings whose index is desired.

Return Value

Type: Int32
The index of the SolverVariableSettings with the matching variableName and variable value in all of the SolvableMultivariableFunctionResults stored in this, or -1 if the SolverVariableSettings is not stored in this set of results.
See Also