Initializing help system before first use

newSos Method (String, Int32, XPRBexpr)

Create an XPRBsos Special Ordered Set in the current problem. For the expression which is given as a parameter, the variables in the expression are added to the SOS and the coefficient of each variable becomes its weight.

Namespace:   BCL
Assembly:  xprbdn (in xprbdn.dll) Version: 4.8.14.0
Syntax
C#
VB
public XPRBsos newSos(
	string name,
	int type,
	XPRBexpr le
)

Parameters

name
Type:  SystemString
The string name of the new XPRBsos.
type
Type:  SystemInt32
The type of the new XPRBsos. Possible values are:
  • BCLconstant.XPRB_S1 - Special Ordered Set of type 1.
  • BCLconstant.XPRB_S2 - Special Ordered Set of type 2.
le
Type:  BCLXPRBexpr
The XPRBexpr expression to be used in forming the new XPRBsos.

Return Value

Type:  XPRBsos
The new XPRBsos object.
Examples
xbpurch.cs in the Introductory Examples folder and xbexpl1.cs in the User's Guide Examples folder.
See Also