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.2.419.0 (24.2.419.0)
Syntax public 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.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