Click or drag to resize

ParameterOptimizerIterationResultsIndexOfVariable Method (SolverVariableSettings)

Gets the index of the SolverVariableSettings in the array that is returned by the GetVariableSettings method. This index also corresponds to the variable values in the array returned by the GetVariablesUsed of every OptimizerMultivariableFunctionResults stored in this set of results.

Namespace:  AGI.Foundation.NumericalMethods
Assembly:  AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 24.1.418.0 (24.1.418.0)
public int IndexOfVariable(
	SolverVariableSettings variable


Type: AGI.Foundation.NumericalMethodsSolverVariableSettings
The SolverVariableSettings whose index is desired.

Return Value

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