ScalarAtEndOfSegmentCostFunction Constructor (Scalar, SegmentDefinition, CostFunctionGoal, Double, TimeBasedStateParameter, EndsOfSegment, CostFunctionScaling, Double) |
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 ScalarAtEndOfSegmentCostFunction(
Scalar scalar,
SegmentDefinition segment,
CostFunctionGoal goal,
double tolerance,
TimeBasedStateParameter parameter,
EndsOfSegment endOfSegment,
CostFunctionScaling scaling,
double weight
)
Public Sub New (
scalar As Scalar,
segment As SegmentDefinition,
goal As CostFunctionGoal,
tolerance As Double,
parameter As TimeBasedStateParameter,
endOfSegment As EndsOfSegment,
scaling As CostFunctionScaling,
weight As Double
)
public:
ScalarAtEndOfSegmentCostFunction(
Scalar^ scalar,
SegmentDefinition^ segment,
CostFunctionGoal goal,
double tolerance,
TimeBasedStateParameter^ parameter,
EndsOfSegment endOfSegment,
CostFunctionScaling^ scaling,
double weight
)
new :
scalar : Scalar *
segment : SegmentDefinition *
goal : CostFunctionGoal *
tolerance : float *
parameter : TimeBasedStateParameter *
endOfSegment : EndsOfSegment *
scaling : CostFunctionScaling *
weight : float -> ScalarAtEndOfSegmentCostFunction
Parameters
- scalar
- Type: AGI.Foundation.GeometryScalar
The Scalar to minimize or maximize. - segment
- Type: AGI.Foundation.SegmentPropagationSegmentDefinition
The SegmentDefinition whose final state 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. - parameter
- Type: AGI.Foundation.GeometryTimeBasedStateParameter
The parameter to use to when computing the scalar cost function. - endOfSegment
- Type: AGI.Foundation.NumericalMethodsEndsOfSegment
Which state in the segment should be used to evaluate the scalar. - scaling
- Type: AGI.Foundation.NumericalMethodsCostFunctionScaling
The type of scaling to be used on this constraint. - weight
- Type: SystemDouble
The weight of this cost function compared to the constraints.
See Also