Overview | Group | Tree | Graph | Index | Concepts |
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_PRIMAL | primal Simplex |
method | = CPX_ALG_DUAL | dual 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.
env | A pointer to the CPLEX environment as returned by | ||||||
lp | A pointer to a CPLEX problem object as returned by | ||||||
method | The type of simplex method to follow the network optimization.
Example status = CPXhybnetopt (env, lp, CPX_ALG_DUAL); See also the example |
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.