Click or drag to resize

XPRBprobgetSosByName Method

Retrieve an XPRBsos by name.

Namespace: BCL
Assembly: xprbdn (in xprbdn.dll) Version: 47.01.01+0ba4e76731516b80760698bbaa939494dae84e49
Syntax
public XPRBsos getSosByName(
	string name
)

Parameters

name  String
The special ordered set name.

Return Value

XPRBsos
The XPRBsos corresponding to the given name, if found.
Example
C#
XPRBprob prob = new XPRBprob("NewProb");
XPRBvar var = new XPRBvar("Variable");
XPRBvar var2 = new XPRBvar("Variable2");
XPRBvar var3 = new XPRBvar("Variable3");
XPRBsos sos;
prob.newSos("Sos1", BCLconstant.XPRB_S1, var + 3.2*var2);
prob.newSos("Sos2", BCLconstant.XPRB_S1, 2.0*var2 + 0.9*var3);
...
sos = prob.getSosByName("Sos1");
See Also