Overview | Group | Tree | Graph | Index | Concepts |
The routine CPXgetmipslack
is used to access a range of
slack variables for the current mixed integer solution. The beginning and
end of the range must be specified.
The routine returns zero on success and nonzero if an error occurs.
If no integer solution has been found, the value
CPXERR_NO_INT_SOLUTION
is returned.
Example
status = CPXgetmipslack (env, lp, slack, 0, CPXgetnumrows(env,lp)-1);
See also the example mipex1.c
in the standard distribution.
env | A pointer to the CPLEX environment as returned by |
lp | A pointer to a CPLEX problem object as returned by |
slack | An array to contain the values of the primal slack variables for the problem. This array must be of length at least |
begin | An integer indicating the beginning of the range of slack values to be returned. |
end | An integer indicating the end of the range of slack values to be returned. Example status = CPXgetmipslack (env, lp, slack, 0, CPXgetnumrows(env,lp)-1); See also the example |