|
LinearConstraintTryParse Method (String, IObjectiveFunction, LinearConstraint)
|
Namespace:
Accord.Math.Optimization
Assembly:
Accord.Math (in Accord.Math.dll) Version: 3.8.0
Syntax public static bool TryParse(
string str,
IObjectiveFunction function,
out LinearConstraint constraint
)
Public Shared Function TryParse (
str As String,
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. - 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