IMSL C# Numerical Library

DenseLP.SetConstraintType Method 

Sets the types of general constraints in the matrix a.

public void SetConstraintType(
   int[] constraintType
);

Parameters

constraintType
A int array containing the types of general constraints.

Remarks

Let r_i = a_{i1}x_1 + \cdots + a_{in}x_n

constraintType Constraint
0 {\rm {r}}_i = {\rm {b}}_i
1 {\rm {r}}_i \le {\rm {b}}_{u_i}
2 {\rm {r}}_i \ge {\rm {b}}_i
3 {\rm {b}}_i \le {\rm {r}}_i \le {\rm {b}}_{u_i}
4 Ignore this constraint

See Also

DenseLP Class | Imsl.Math Namespace