Description
Given a linear program that has been created via a call to CPXcreateprob(), the CPXhybnetopt() routine first extracts an embedded network, uses the CPLEX network optimizer to attempt to obtain an optimal basis to the network, and then 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.Return Value
The return code for CPXhybnetopt() is that of the subsequent optimization using the primal or dual simplex method (see the CPXprimopt() and CPXdualopt() routines). Synopsis
int CPXhybnetopt (CPXENVptr env,
CPXLPptr lp,
int method);
CPXENVptr envThe pointer to the CPLEX environment as returned by one of the
CPXopenCPLEX routines.
CPXLPptr lpA pointer to a CPLEX LP problem object as returned by
CPXcreateprob().
int methodThe type of simplex method to follow the network optimization.
method
|
= CPX_ALG_PRIMAL
|
primal crossover
|
method
|
= CPX_ALG_DUAL
|
dual crossover
|
status = CPXhybnetopt (env, lp, CPX_ALG_DUAL);