Click or drag to resize

DelegateBasedConstraint Constructor (DelegateBasedConstraintCallback, SegmentDefinition, Double, Double, SolverConstraintScaling, Double)

Initializes a new instance.

Namespace:  AGI.Foundation.NumericalMethods
Assembly:  AGI.Foundation.SegmentPropagation (in AGI.Foundation.SegmentPropagation.dll) Version: 24.1.418.0 (24.1.418.0)
Syntax
public DelegateBasedConstraint(
	DelegateBasedConstraintCallback callback,
	SegmentDefinition segment,
	double desiredValue,
	double tolerance,
	SolverConstraintScaling scaling,
	double weight
)

Parameters

callback
Type: AGI.Foundation.NumericalMethodsDelegateBasedConstraintCallback
The delegate that will compute a value to compare against the DesiredValue.
segment
Type: AGI.Foundation.SegmentPropagationSegmentDefinition
The segment that this constraint will act on.
desiredValue
Type: SystemDouble
The desired value that the function will be driven to.
tolerance
Type: SystemDouble
How close the evaluated value must get to the desiredValue to consider this constraint satisfied.
scaling
Type: AGI.Foundation.NumericalMethodsSolverConstraintScaling
The type of scaling to be used on this constraint.
weight
Type: SystemDouble
The weight of this constraint compared to the cost function and other constraints.
See Also