Click or drag to resize
Accord.NET (logo)

QuadraticObjectiveFunctionTryParse Method (String, CultureInfo, QuadraticObjectiveFunction)

Attempts to create a QuadraticObjectiveFunction from a String representation.

Namespace:  Accord.Math.Optimization
Assembly:  Accord.Math (in Accord.Math.dll) Version: 3.8.0
Syntax
public static bool TryParse(
	string str,
	CultureInfo culture,
	out QuadraticObjectiveFunction function
)
Request Example View Source

Parameters

str
Type: SystemString
The string containing the function in textual form.
culture
Type: System.GlobalizationCultureInfo
The culture information specifying how numbers written in the function should be parsed. Default is CultureInfo.InvariantCulture.
function
Type: Accord.Math.OptimizationQuadraticObjectiveFunction
The resulting function, if it could be parsed.

Return Value

Type: Boolean
true if the function could be parsed from the string, false otherwise.
See Also