Click or drag to resize

DelegateBasedCostFunction Constructor (DelegateBasedCostFunctionCallback, SegmentDefinition, CostFunctionGoal, Double)

Initializes a new instance.

Namespace:  AGI.Foundation.NumericalMethods
Assembly:  AGI.Foundation.SegmentPropagation (in AGI.Foundation.SegmentPropagation.dll) Version: 24.1.418.0 (24.1.418.0)
Syntax
public DelegateBasedCostFunction(
	DelegateBasedCostFunctionCallback callback,
	SegmentDefinition segment,
	CostFunctionGoal goal,
	double tolerance
)

Parameters

callback
Type: AGI.Foundation.NumericalMethodsDelegateBasedCostFunctionCallback
The delegate that will compute a value to minimize or maximize.
segment
Type: AGI.Foundation.SegmentPropagationSegmentDefinition
The segment that this constraint will act on.
goal
Type: AGI.Foundation.NumericalMethodsCostFunctionGoal
Whether the cost function should be minimized or maximized.
tolerance
Type: SystemDouble
How small the cost function's variation between subsequent iterations must become to consider this cost function to be converged.
See Also