/// <summary> /// Attempts to create a <see cref="QuadraticObjectiveFunction"/> /// from a <see cref="System.String"/> representation. /// </summary> /// /// <param name="str">The string containing the function in textual form.</param> /// <param name="function">The resulting function, if it could be parsed.</param> /// /// <returns><c>true</c> if the function could be parsed /// from the string, <c>false</c> otherwise.</returns> /// public static bool TryParse(string str, out QuadraticObjectiveFunction function) { return(TryParse(str, CultureInfo.InvariantCulture, out function)); }
/// <summary> /// Constructs a new <see cref="GoldfarbIdnani"/> class. /// </summary> /// /// <param name="function">The objective function to be optimized.</param> /// <param name="constraints">The problem's constraints.</param> /// public GoldfarbIdnani(QuadraticObjectiveFunction function, IEnumerable <LinearConstraint> constraints) : this(function, new LinearConstraintCollection(constraints)) { }