SegmentPropagatorCostFunction Constructor (CostFunctionGoal, Double, CostFunctionScaling, Double) |
Initializes a new instance. The weight defaults to 1.0.
Namespace:
AGI.Foundation.NumericalMethods
Assembly:
AGI.Foundation.Models (in AGI.Foundation.Models.dll) Version: 24.2.419.0 (24.2.419.0)
Syntax protected SegmentPropagatorCostFunction(
CostFunctionGoal goal,
double tolerance,
CostFunctionScaling scaling,
double weight
)
Protected Sub New (
goal As CostFunctionGoal,
tolerance As Double,
scaling As CostFunctionScaling,
weight As Double
)
protected:
SegmentPropagatorCostFunction(
CostFunctionGoal goal,
double tolerance,
CostFunctionScaling^ scaling,
double weight
)
new :
goal : CostFunctionGoal *
tolerance : float *
scaling : CostFunctionScaling *
weight : float -> SegmentPropagatorCostFunction
Parameters
- goal
- Type: AGI.Foundation.NumericalMethodsCostFunctionGoal
Whether the cost function is supposed to be minimized or maximized. - tolerance
- Type: SystemDouble
The cost function is considered to be converged if its value changes by less than
this value from one iteration to the next. - scaling
- Type: AGI.Foundation.NumericalMethodsCostFunctionScaling
The type of scaling to be used on this cost function. - weight
- Type: SystemDouble
A value multiplied by the cost function to prioritize or de-prioritize it
with respect to the constraint errors of any active constraints.
See Also