Initializing help system before first use

getType Method

Return the type of the XPRBrelation.

Namespace:   BCL
Assembly:  xprbdn (in xprbdn.dll) Version: 4.8.14.0
Syntax
C#
VB
public int getType()

Return Value

Type:  Int32
The 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.
Examples
XPRBprob 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