Click or drag to resize

CostFunctionSettings Constructor (CostFunctionGoal, Double, CostFunctionScaling, String, Double)

Initializes a new instance.

Namespace:  AGI.Foundation.NumericalMethods
Assembly:  AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 25.1.421.0 (25.1.421.0)
Syntax
public CostFunctionSettings(
	CostFunctionGoal goal,
	double tolerance,
	CostFunctionScaling scaling,
	string name,
	double weight
)

Parameters

goal
Type: AGI.Foundation.NumericalMethods.CostFunctionGoal
Whether the cost function is supposed to be minimized or maximized.
tolerance
Type: System.Double
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.NumericalMethods.CostFunctionScaling
Sets the type of scaling to be used on this cost function.
name
Type: System.String
An optional name for the cost function settings.
weight
Type: System.Double
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