XPRBprobnewSos(String, Int32, XPRBexpr) Method |
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: BCLAssembly: xprbdn (in xprbdn.dll) Version: 47.01.01+0ba4e76731516b80760698bbaa939494dae84e49
Syntaxpublic XPRBsos newSos(
string name,
int type,
XPRBexpr le
)
Public Function newSos (
name As String,
type As Integer,
le As XPRBexpr
) As XPRBsos
Parameters
- name String
- The string name of the new XPRBsos.
- type Int32
- 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 XPRBexpr
- The XPRBexpr expression to be used in forming
the new XPRBsos.
Return Value
XPRBsosThe new XPRBsos object.
Examplexbpurch.cs in the Introductory Examples folder and xbexpl1.cs in the User's Guide Examples folder.
See Also