Overview | Group | Tree | Graph | Index | Concepts |
The routine CPXhybbaropt
may be used, at any time after a
linear program has been created via a call to CPXcreateprob
,
to find a solution to that problem. When this function is called, the
specified problem is solved using CPLEX Barrier followed by an automatic
crossover to a basic solution if barrier determines that the problem is both
primal and dual feasible. Otherwise, crossover is not performed. In this
case, a call to CPXprimopt
or CPXdualopt
can
force a crossover to occur. The results of the optimization are recorded in
the problem object.
method | = 0 | use CPX_PARAM_BARCROSSALG to choose a crossover
method |
method | = CPX_ALG_PRIMAL | primal crossover |
method | = CPX_ALG_DUAL | dual crossover |
method | = CPX_ALG_NONE | no crossover |
Example
status = CPXhybbaropt (env, lp, CPX_ALG_PRIMAL);
See also the example lpex2.c
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 | Crossover method to be implemented, according to the table. |