getSosByName Method
Retrieve an XPRBsos by name.
Namespace: BCL
Assembly: xprbdn (in xprbdn.dll) Version: 4.8.14.0

Parameters
- name
-
Type:
SystemString
The special ordered set name.
Return Value
Type: XPRBsosThe XPRBsos corresponding to the given name, if found.

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");
