Overview | Group | Tree | Graph | Index | Concepts |
The routine CPXmipopt
may be used, at any time after a
mixed integer program has been created by a call to
CPXcreateprob
, to find a solution to that
problem.
CPXmipopt
returns zero unless it encounters an error.
Nonzero values are error codes indicating which type of failure occurred.
Use the routine CPXgetstat
to determine
the status of the mixed integer optimization. One possible error is the
inability to solve a subproblem satisfactorily, as indicated
by CPXERR_SUBPROB_SOLVE
.
The solution status of the subproblem optimization can be obtained with the
routine CPXgetsubstat
.
An LP solution does not exist at the end of CPXmipopt
, so
post-solution information is available only through the special mixed
integer solution routines. To obtain post-solution information for the LP
subproblem associated with the integer
solution, use the routine CPXchgprobtype
.
Example
status = CPXmipopt (env, lp);
See also the example mipex1.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 |