NO FRAMES

CPXhybnetopt

int CPXPUBLIC CPXhybnetopt(CPXCENVptr env, CPXLPptr lp, int method)
Definition file: cplex.h
Include files: cplex.h

The routine CPXhybnetopt, given a linear program that has been created via a call to CPXcreateprob, extracts an embedded network, uses the CPLEX Network Optimizer to attempt to obtain an optimal basis to the network, and optimizes the entire linear program using one of the CPLEX simplex methods. CPLEX takes the network basis as input for the optimization of the whole linear program.

method= CPX_ALG_PRIMALprimal Simplex
method= CPX_ALG_DUALdual Simplex

Example

 status = CPXhybnetopt (env, lp, CPX_ALG_DUAL);
 

See also the example lpex3.c in the ILOG CPLEX User's Manual and in the standard distribution.

Parameters:

env

A pointer to the CPLEX environment as returned by CPXopenCPLEX.

lp

A pointer to a CPLEX problem object as returned by CPXcreateprob.

method

The type of simplex method to follow the network optimization.

method= CPX_ALG_PRIMALprimal Simplex
method= CPX_ALG_DUALdual Simplex

Example

 status = CPXhybnetopt (env, lp, CPX_ALG_DUAL);
 

See also the example lpex3.c in the ILOG CPLEX User's Manual and in the standard distribution.

Returns:

The routine returns zero unless an error occurred during the optimization. Examples of errors include exhausting available memory (CPXERR_NO_MEMORY) or encountering invalid data in the CPLEX problem object (CPXERR_NO_PROBLEM). Exceeding a user-specified CPLEX limit, or proving the model infeasible or unbounded, are not considered errors. Note that a zero return value does not necessarily mean that a solution exists. Use query routines CPXsolninfo, CPXgetstat, and CPXsolution to obtain further information about the status of the optimization.