Initializing help system before first use

AddConstraints(K1[], K2[], Func>) Method

Obsolete since version 44.00, use the overload that takes System.Collections.Generic.IEnumerable arguments

Add multiple constraints to this problem. Calls makeConstraint for each element in the cartesian product of the arrays and adds the constraint that is produced by this function call. A deep copy is made of each constraint, thus modifying the constraint later will not alter the model.

Namespace:  Optimizer.Objects
Assembly: xprsdn (in xprsdn.dll) Version: 45.01.02+1f9fd7ff9a8620394fec1839699751312debed40
Syntax
C#
[ObsoleteAttribute("Obsolete since version 44.00, use the overload that takes System.Collections.Generic.IEnumerable arguments", 
	false)]
public void AddConstraints<K1, K2, C>(
	K1[] array1,
	K2[] array2,
	Func<K1, K2, ConstraintDefinition<C>> makeConstraint
)
where C : IIndex

Parameters

array1   K1
Data for dimension 1.
array2   K2
Data for dimension 2.
makeConstraint   Func K1, K2, ConstraintDefinition C
Function to generate a constraint.

Type Parameters

K1
Data for dimension 1.
K2
Data for dimension 2.
C
The type of constraints.
Remarks
See Also

© 2001-2025 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.