DelegateBasedCostFunction Constructor (DelegateBasedCostFunctionCallback, SegmentDefinition, CostFunctionGoal, Double) |
Initializes a new instance.
Namespace:
AGI.Foundation.NumericalMethods
Assembly:
AGI.Foundation.SegmentPropagation (in AGI.Foundation.SegmentPropagation.dll) Version: 25.1.421.0 (25.1.421.0)
Syntaxpublic DelegateBasedCostFunction(
DelegateBasedCostFunctionCallback callback,
SegmentDefinition segment,
CostFunctionGoal goal,
double tolerance
)
Public Sub New (
callback As DelegateBasedCostFunctionCallback,
segment As SegmentDefinition,
goal As CostFunctionGoal,
tolerance As Double
)
public:
DelegateBasedCostFunction(
DelegateBasedCostFunctionCallback^ callback,
SegmentDefinition^ segment,
CostFunctionGoal goal,
double tolerance
)
new :
callback : DelegateBasedCostFunctionCallback *
segment : SegmentDefinition *
goal : CostFunctionGoal *
tolerance : float -> DelegateBasedCostFunction
Parameters
- callback
- Type: AGI.Foundation.NumericalMethods.DelegateBasedCostFunctionCallback
The delegate that will compute a value to minimize or maximize. - segment
- Type: AGI.Foundation.SegmentPropagation.SegmentDefinition
The segment that this constraint will act on. - goal
- Type: AGI.Foundation.NumericalMethods.CostFunctionGoal
Whether the cost function should be minimized or maximized. - tolerance
- Type: System.Double
How small the cost function's variation between subsequent iterations must become
to consider this cost function to be converged.
See Also