InitialStateSegment<T>.CreateVariable Method (Double, Double, SetVariableCallback<T>, SolverVariableScaling) |
Namespace:
AGI.Foundation.SegmentPropagation
Assembly:
AGI.Foundation.SegmentPropagation (in AGI.Foundation.SegmentPropagation.dll) Version: 24.3.420.0 (24.3.420.0)
Syntaxpublic DelegateBasedVariable<InitialStateSegmentConfiguration> CreateVariable(
double maximumStep,
double perturbation,
SetVariableCallback<T> setter,
SolverVariableScaling scaling
)
Public Function CreateVariable (
maximumStep As Double,
perturbation As Double,
setter As SetVariableCallback(Of T),
scaling As SolverVariableScaling
) As DelegateBasedVariable(Of InitialStateSegmentConfiguration)
public:
DelegateBasedVariable<InitialStateSegmentConfiguration^>^ CreateVariable(
double maximumStep,
double perturbation,
SetVariableCallback<T>^ setter,
SolverVariableScaling^ scaling
)
member CreateVariable :
maximumStep : float *
perturbation : float *
setter : SetVariableCallback<'T> *
scaling : SolverVariableScaling -> DelegateBasedVariable<InitialStateSegmentConfiguration>
Parameters
- maximumStep
- Type: System.Double
The maximum step that the variable
should take. - perturbation
- Type: System.Double
The perturbation that should be used when finding the functions
derivative with respect to this variable. - setter
- Type: AGI.Foundation.NumericalMethods.SetVariableCallback<T>
The delegate that will set the value in the configuration. The value
of the variable passed into this delegate is the delta that must be added to the relevant
value in the configuration, not the total value that the value in the delegate should be. - scaling
- Type: AGI.Foundation.NumericalMethods.SolverVariableScaling
The type of scaling to be used on the variable.
Return Value
Type:
DelegateBasedVariable<InitialStateSegmentConfiguration>The configured
DelegateBasedVariable<T>.
See Also