NO FRAMES

CPXNETgetslack

int CPXPUBLIC CPXNETgetslack(CPXCENVptr env, CPXCNETptr net, double * slack, int begin, int end)
Definition file: cplex.h
Include files: cplex.h

The routine CPXNETgetslack is used to access slack values or, equivalently, violations of supplies/demands for a range of nodes in the network stored in a network problem object.

For this function to succeed, a solution must exist for the problem object.

Example

 status = CPXNETgetslack (env, net, slack, 10, 20);

Parameters:

env

A pointer to the CPLEX environment as returned by CPXopenCPLEX.

net

A pointer to a CPLEX network problem object as returned by CPXNETcreateprob.

slack

Array in which to write solution slack variables for requested nodes. If NULL is passed, no data is returned. Otherwise, slack must point to an array of size at least (end-begin+1).

begin

Index of the first node for which a slack value is to be obtained.

end

Index of the last node for which a slack value is to be obtained.

Returns:

The routine returns zero on success and nonzero if an error occurs.