WebCab Optimization for COM v2.6

EasySolver.AddEqualityConstraint Method 

Adds an equality constraint to the multidimensional optimization problem being considered.

public void AddEqualityConstraint(
   double[] coefficients,
   double equalToValue
);

Remarks

Providing an Equality Constraint

For an optimization problem in n-dimensional space, you are able add the following equality constraint:

coeff0 * x0 + coeff1 * x1 + ..... + coeffn-1 * xn-1 = equalToValue,

where coeffi, is the coefficient of the coordinate variable xi and equalToValue is just a constant. In order to pass this linear constraint as parameters to this method you need to set:

  1. Parameter `coefficients' = { coeff0, coeff0, ..., coeffn-1}
  2. Parameter `equalToValue = equalToValue

See Also

EasySolver Class | WebCab.COM.Math.Optimization Namespace | Add a `greater than' linear constraints to multidimensional optimization problem being considered. | Add a `less than' linear constraints to multidimensional optimization problem being considered. | Adds a lower bound constraints to a multidimensional optimization problem being considered. | Adds an upper bound constraint to a multidimensional optimization problem being considered. | Removes all the constraints which have been set for a multidimensional optimization problem being considered.