setDir Method (Int32, Double)
Set an XPRBsos directive.
Namespace: BCL
Assembly: xprbdn (in xprbdn.dll) Version: 37.1.1.0

Parameters
- type
-
Type:
SystemInt32
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
-
Type:
SystemDouble
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, XPRB.DN - no input required, choose any dummy value (e.g. 0).
- XPRB.PU, XPRB.PD - value of pseudocost for the corresponding branch.
Return Value
Type: Int320 on success.

xbexpl1.cs in the User's Guide Examples folder shows an overload of this method.
