XPRBprobnewVar(String, Int32, Double, Double) Method |
Create a new XPRBvar variable in the current problem.
Namespace: BCLAssembly: xprbdn (in xprbdn.dll) Version: 47.01.01+0ba4e76731516b80760698bbaa939494dae84e49
Syntaxpublic XPRBvar newVar(
string name,
int type,
double lob,
double upb
)
Public Function newVar (
name As String,
type As Integer,
lob As Double,
upb As Double
) As XPRBvar
Parameters
- name String
- The string name of the new XPRBvar variable.
- type Int32
- 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.
- lob Double
- The double lower bound of the variable.
- upb Double
- The double upper bound of the variable.
Return Value
XPRBvarThe new XPRBvar object.
Examplexbcontr1.cs, xbexpl.cs and xbportf.cs in the Introductory Examples folder.
xbcutstk.cs and xbrecurs.cs in the Advanced Examples folder.
folioheur.cs, foliomip1.cs, foliomip2.cs, folioqp.cs, xbcontr1.cs,
xbcontr2.cs, xbcutex.cs, xbexpl1.cs, xbexpl1i.cs, xbqprl2.cs and xbexpl3.cs from the User's Guide
Examples folder.
See Also