LinearConstraintsProjectorTryConvertToBoxConstraints Method |
Attempts to convert the current set of linear constraints to simple lower and upper boundary constraints for
each parameter.
Namespace: Altaxo.Calc.OptimizationAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3618.0 (4.8.3618.0)
Syntaxpublic (double?[] , double?[] , bool[]? , double?[]? , bool[]? )? TryConvertToBoxConstraints(
double tolerance = 1E-12
)
Parameters
- tolerance Double (Optional)
- When determining whether a matrix entry is considered non-zero, this tolerance is used relative to the row norm. This allows for some numerical imprecision in the constraint definitions while still enabling conversion to boundary constraints when appropriate.
Return Value
NullableValueTupleNullableDouble,
NullableDouble,
Boolean,
NullableDouble,
BooleanA tuple containing arrays of nullable doubles representing the lower and upper bounds for each parameter if the
constraints can be represented as simple boundaries; otherwise, null if the conversion is not possible.
Implements
IConstraintsProjectorTryConvertToBoxConstraints(Double)
RemarksThe conversion succeeds only if there are no equality constraints and each inequality
constraint involves exactly one parameter. If there are no inequality constraints, all parameters are considered
unconstrained.
See Also