Click or drag to resize

CombinedCostFunction Constructor (CostFunctionGoal, Double, CostFunctionScaling, Double, IListSegmentPropagatorCostFunction)

Initializes a new instance.

Namespace:  AGI.Foundation.NumericalMethods
Assembly:  AGI.Foundation.SegmentPropagation (in AGI.Foundation.SegmentPropagation.dll) Version: 24.3.420.0 (24.3.420.0)
Syntax
public CombinedCostFunction(
	CostFunctionGoal goal,
	double tolerance,
	CostFunctionScaling scaling,
	double weight,
	IList<SegmentPropagatorCostFunction> costFunctions
)

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
Sets 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. This is the weight of the combined cost function and is applied after the weights of its constituents are applied.
costFunctions
Type: System.Collections.GenericIListSegmentPropagatorCostFunction
A list of cost functions whose weights, scaling factors, and evaluation results will be used to form the evaluation results of this cost function. All of their other properties will be ignored. This list must contain at least one element.
Exceptions
ExceptionCondition
ArgumentNullException Thrown if costFunctions is .
ArgumentException Thrown if costFunctions is empty.
See Also