|
LinearConstraintTryParse Method (String, CultureInfo, IObjectiveFunction, LinearConstraint)
|
Namespace:
Accord.Math.Optimization
Assembly:
Accord.Math (in Accord.Math.dll) Version: 3.8.0
Syntax public static bool TryParse(
string str,
CultureInfo culture,
IObjectiveFunction function,
out LinearConstraint constraint
)
Public Shared Function TryParse (
str As String,
culture As CultureInfo,
function As IObjectiveFunction,
<OutAttribute> ByRef constraint As LinearConstraint
) As Boolean
Request Example
View SourceParameters
- str
- Type: SystemString
The string containing the constraint in textual form. - culture
- Type: System.GlobalizationCultureInfo
The culture information specifying how
numbers written in the constraint should
be parsed. Default is CultureInfo.InvariantCulture. - function
- Type: Accord.Math.OptimizationIObjectiveFunction
The objective function to which this constraint refers to. - constraint
- Type: Accord.Math.OptimizationLinearConstraint
The resulting constraint, if it could be parsed.
Return Value
Type:
Booleantrue if the function could be parsed
from the string,
false otherwise.
See Also