Attach a constraint ct to a value pref (for preference). After some attachments have been done, only the constraints with attached preferences are taken into account for relaxation.

Namespace: ILOG.OPL
Assembly: oplall (in oplall.dll)

Syntax

C#
public void Attach(
	IConstraint ct,
	double pref
)

Parameters

ct
Type: ILOG.Concert..::..IConstraint
An object for the constraint to attach a preference to.
pref
Type: System..::..Double
The preference value.

See Also