Click or drag to resize

LinearConstraintsProjectorTryCreate Method

Attempts to create a new instance of the LinearConstraintsProjector using the specified equality and inequality constraints.

Namespace: Altaxo.Calc.Optimization
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3618.0 (4.8.3618.0)
Syntax
C#
public static (LinearConstraintsProjector Projector, string? ErrorMessage) TryCreate(
	Matrix<double>? A,
	Vector<double>? b,
	Matrix<double>? C,
	Vector<double>? d
)

Parameters

A  MatrixDouble
The matrix representing the coefficients of the equality constraints. May be null if no equality constraints are specified.
b  VectorDouble
The vector representing the right-hand side of the equality constraints. Must be compatible with A if provided. May be null if no equality constraints are specified.
C  MatrixDouble
The matrix representing the coefficients of the inequality constraints. May be null if no inequality constraints are specified.
d  VectorDouble
The vector representing the right-hand side of the inequality constraints. Must be compatible with C if provided. May be null if no inequality constraints are specified.

Return Value

ValueTupleLinearConstraintsProjector, String
A tuple containing the created LinearConstraintsProjector if the constraints are compatible, or null and an error message if the constraints are incompatible.
Remarks
This method does not validate the compatibility of the provided matrices and vectors beyond checking for incompatible constraints. If the constraints are incompatible, the returned projector will be null and the error message will describe the issue.
See Also