ScalarDifferenceOfSegmentCostFunction Constructor (Scalar, SegmentDefinition, CostFunctionGoal, Double, ScalarConstraintDifference, CostFunctionScaling) |
Initializes a new instance.
Namespace:
AGI.Foundation.NumericalMethods
Assembly:
AGI.Foundation.SegmentPropagation (in AGI.Foundation.SegmentPropagation.dll) Version: 24.2.419.0 (24.2.419.0)
Syntax public ScalarDifferenceOfSegmentCostFunction(
Scalar scalar,
SegmentDefinition segment,
CostFunctionGoal goal,
double tolerance,
ScalarConstraintDifference costFunctionDifference,
CostFunctionScaling scaling
)
Public Sub New (
scalar As Scalar,
segment As SegmentDefinition,
goal As CostFunctionGoal,
tolerance As Double,
costFunctionDifference As ScalarConstraintDifference,
scaling As CostFunctionScaling
)
public:
ScalarDifferenceOfSegmentCostFunction(
Scalar^ scalar,
SegmentDefinition^ segment,
CostFunctionGoal goal,
double tolerance,
ScalarConstraintDifference costFunctionDifference,
CostFunctionScaling^ scaling
)
new :
scalar : Scalar *
segment : SegmentDefinition *
goal : CostFunctionGoal *
tolerance : float *
costFunctionDifference : ScalarConstraintDifference *
scaling : CostFunctionScaling -> ScalarDifferenceOfSegmentCostFunction
Parameters
- scalar
- Type: AGI.Foundation.GeometryScalar
The Scalar to minimize or maximize. - segment
- Type: AGI.Foundation.SegmentPropagationSegmentDefinition
The SegmentDefinition whose initial and final states will
be used to compute the Scalar. - goal
- Type: AGI.Foundation.NumericalMethodsCostFunctionGoal
Whether the cost function should be minimized or maximized. - tolerance
- Type: SystemDouble
How small the cost function's variation between subsequent iterations must become
to consider this cost function to be converged. - costFunctionDifference
- Type: AGI.Foundation.NumericalMethodsScalarConstraintDifference
The type of the difference to evaluate (first minus last, or last minus first...). - scaling
- Type: AGI.Foundation.NumericalMethodsCostFunctionScaling
The type of scaling to be used on this constraint.
See Also