Click or drag to resize

DelegateBasedCostFunction Constructor (DelegateBasedCostFunctionCallback, SegmentDefinition, CostFunctionGoal, Double, CostFunctionScaling, Double)

Initializes a new instance.

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

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.
scaling
Type: AGI.Foundation.NumericalMethodsCostFunctionScaling
The type of scaling to be used on this constraint.
weight
Type: SystemDouble
The weight of this cost function compared to the constraints.
See Also