newVar Method (String, Int32)
Create a new XPRBvar variable in the current problem. The lower bound is set to zero and the upper bound to BCLconstant.XPRB_INFINITY.
Namespace: BCL
Assembly: xprbdn (in xprbdn.dll) Version: 4.8.14.0

Parameters
- name
-
Type:
SystemString
The string name of the new XPRBvar variable. - type
-
Type:
SystemInt32
The type of the variable. Possible values are:- BCLconstant.XPRB_PL - Continuous.
- BCLconstant.XPRB_BV - Binary.
- BCLconstant.XPRB_UI - General integer.
- BCLconstant.XPRB_PI - Partial integer.
- BCLconstant.XPRB_SC - Semi-continuous.
- BCLconstant.XPRB_SI - Semi-continuous integer.
Return Value
Type: XPRBvarThe new XPRBvar object.

xbburg.cs, xbburgi.cs, xbcoco.cs, xbcontr1.cs, xbexpl.cs and xbportf.cs in the Introductory Examples folder. xbcutstk.cs, xbels.cs, xbelsc.cs, xbfixbv.cs and xbgoalobj.cs in the Advanced Examples folder. folioheur.cs, foliomip1.cs, folioqp.cs, xbcontr1.cs, xbcontr2.cs, xbcutex.cs, xbexpl1.cs and xbexpl1i.cs from the User's Guide Examples folder.
