ScalarDifferenceOfSegmentCostFunction Constructor (Scalar, SegmentDefinition, CostFunctionGoal, Double, ScalarConstraintDifference) |
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 ScalarDifferenceOfSegmentCostFunction(
Scalar scalar,
SegmentDefinition segment,
CostFunctionGoal goal,
double tolerance,
ScalarConstraintDifference costFunctionDifference
)
Public Sub New (
scalar As Scalar,
segment As SegmentDefinition,
goal As CostFunctionGoal,
tolerance As Double,
costFunctionDifference As ScalarConstraintDifference
)
public:
ScalarDifferenceOfSegmentCostFunction(
Scalar^ scalar,
SegmentDefinition^ segment,
CostFunctionGoal goal,
double tolerance,
ScalarConstraintDifference costFunctionDifference
)
new :
scalar : Scalar *
segment : SegmentDefinition *
goal : CostFunctionGoal *
tolerance : float *
costFunctionDifference : ScalarConstraintDifference -> ScalarDifferenceOfSegmentCostFunction
Parameters
- scalar
- Type: AGI.Foundation.Geometry.Scalar
The Scalar to minimize or maximize. - segment
- Type: AGI.Foundation.SegmentPropagation.SegmentDefinition
The SegmentDefinition whose initial and final states will
be used to compute the Scalar. - 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. - costFunctionDifference
- Type: AGI.Foundation.NumericalMethods.ScalarConstraintDifference
The type of the difference to evaluate (first minus last, or last minus first...).
See Also