XPRBvarsetDir(Int32, Double) Method |
Set a variable directive.
Namespace: BCLAssembly: xprbdn (in xprbdn.dll) Version: 47.01.01+0ba4e76731516b80760698bbaa939494dae84e49
Syntaxpublic int setDir(
int type,
double val
)
Public Function setDir (
type As Integer,
val As Double
) As Integer
Parameters
- type Int32
- The type of directive. Possible values:
- BCLconstant.XPRB.PR – Priority.
- BCLconstant.XPRB.UP – First branch upwards.
- BCLconstant.XPRB.DN – First branch downwards.
- BCLconstant.XPRB.PU – Pseudocost on branching upwards.
- BCLconstant.XPRB.PD – Pseudocost on branching downwards.
- val Double
- The value of this argument depends on the type
of directive to be defined. Possible values:
- XPRB.PR – priority value, integer between 1 (highest) and
1000 (least priority, default value).
- XPRB.UP – no input required, choose any dummy value (e.g. 0).
- XPRB.PU – value of pseudocost for the corresponding branch.
Return Value
Int320 on success.
Examplexbexpl1.cs and xbexpl1i.cs in the User's Guide Examples folder.
See Also