ILOG CPLEX .NET Reference Manual

Cplex.SetPriorities Method (INumVar[], Int32[], Int32, Int32)

Sets branch priorities for num consecutive variables, starting from the index specified by start.

public virtual void SetPriorities(
   INumVar[] var,
   int[] pri,
   int start,
   int num
);

Parameters

var
An array containing the variables whose priority values are being set.
pri
An array containing the priority value to use. The priority for variable var[j] will be set to pri[j], for j = start, ..., start+num-1.
start
The index of the first element in var and pri to consider.
num
The number of consecutive elements in var and pri to consider.

Remarks

During branching, integer variables with higher priorities are given preference over integer variables with lower priorities. Further, variables that have priority assigned to them are given preference over variables that do not. Branching priorities must be nonnegative integers. By default, the priority of a variable without a user-assigned priority is 0 (zero). To remove a user-assigned priority from a variable, use the method Cplex.DelPriorities. The parameter MIPOrdInd by default indicates that user-assigned priority orders should be taken into account. When MIPOrdInd is reset to its nondefault value 0 (zero), CPLEX ignores user-assigned priorities. For more detail about how priorities are applied, see the topic Issuing Priority Orders in the ILOG CPLEX User's Manual.

See Also

Cplex Class | ILOG.CPLEX Namespace | Cplex.SetPriorities Overload List