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: 25.1.421.0 (25.1.421.0)
Syntaxpublic DelegateBasedCostFunction(
DelegateBasedCostFunctionCallback callback,
SegmentDefinition segment,
CostFunctionGoal goal,
double tolerance,
CostFunctionScaling scaling,
double weight
)
Public Sub New (
callback As DelegateBasedCostFunctionCallback,
segment As SegmentDefinition,
goal As CostFunctionGoal,
tolerance As Double,
scaling As CostFunctionScaling,
weight As Double
)
public:
DelegateBasedCostFunction(
DelegateBasedCostFunctionCallback^ callback,
SegmentDefinition^ segment,
CostFunctionGoal goal,
double tolerance,
CostFunctionScaling^ scaling,
double weight
)
new :
callback : DelegateBasedCostFunctionCallback *
segment : SegmentDefinition *
goal : CostFunctionGoal *
tolerance : float *
scaling : CostFunctionScaling *
weight : 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. - scaling
- Type: AGI.Foundation.NumericalMethods.CostFunctionScaling
The type of scaling to be used on this constraint. - weight
- Type: System.Double
The weight of this cost function compared to the constraints.
See Also