/// <summary> /// Sets the variable at the given index. /// </summary> /// <param name="value">The variable to set at the index.</param> /// <param name="index">The index of the variable.</param> protected void SetVariableByIndex(Variable value, params object[] index) { _variables[index] = value; }
/// <summary> /// Creates a variable at the given index. /// </summary> /// <param name="lowerBound">The variable's lower bound.</param> /// <param name="upperBound">The variable's upper bound.</param> /// <param name="name">The variable's name.</param> /// <param name="index">The index.</param> public void Add(double lowerBound, double upperBound, string name, params object[] index) { this[index] = new Variable(_solver, _variableType, lowerBound, upperBound, name); }