Previous Page: CPXhybbaroptFirst PageNext Page: CPXiiswrite

CPXhybnetopt


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);

Arguments


CPXENVptr env
The pointer to the CPLEX environment as returned by one of the CPXopenCPLEX routines.

CPXLPptr lp
A pointer to a CPLEX LP problem object as returned by CPXcreateprob().

int method
The type of simplex method to follow the network optimization.

method  
= CPX_ALG_PRIMAL  
primal crossover  
method  
= CPX_ALG_DUAL  
dual crossover  

Example

status = CPXhybnetopt (env, lp, CPX_ALG_DUAL);

See Also

Example lpex3.c in the CPLEX User's Manual.

Previous Page: CPXhybbaroptFirst PageNext Page: CPXiiswrite