Initializing help system before first use

XPRBsetcolorder

XPRBsetcolorder


Purpose
Set a column ordering criterion for matrix generation.
Synopsis
int XPRBsetcolorder(XPRBprob prob, int num);
Arguments
prob 
Reference to a problem.
num 
The ordering flag, which must be one of:
default ordering;
alphabetical order.
Return value
0 if function executed successfully, 1 otherwise.
Example
Set a fixed ordering for a single problem:
XPRBprob expl2;
expl2 = XPRBnewprob("example2");
XPRBsetcolorder(expl2, 1);
Further information
1. BCL runs reproduce always the same matrix for a problem. This function allows the user to choose a different ordering criterion than the default one. Note that this function only changes the order of columns in what is sent to Xpress Optimizer, you do not see any effect when exporting the matrix with BCL. However you can control the effect by exporting the matrix from the Optimizer.
2. This function can be used before any problem has been created (with first argument NULL). In this case the setting applies to all problems that are created subsequently.
Related topics