XPRBrelationgetType Method |
Return the type of the XPRBrelation.
Namespace: BCLAssembly: xprbdn (in xprbdn.dll) Version: 47.01.01+0ba4e76731516b80760698bbaa939494dae84e49
SyntaxPublic Function getType As Integer
Return Value
Int32The relation type. Possible values:
- BCLconstant.XPRB_N – Not equal.
- BCLconstant.XPRB_L – Less than or equal to.
- BCLconstant.XPRB_G – Greater than or equal to.
- BCLconstant.XPRB_E – Equal to.
- BCLconstant.XPRB_R – Ranged answer.
ExampleXPRBprob prob = new XPRBprob("NewProb");
XPRBvar var = new XPRBvar("Variable");
XPRBrelation rel = new XPRBrelation(2.3*var - 6.9, BCLconstant.XPRB_N);
...
if(rel.getType() == BCLconstant.XPRB_N)
System.Console.Writeln("This is non-constrained.");
See Also