Overview | Group | Index | Concepts |
At any time after a mixed integer program has been created by a call to
CPXcreateprob
, the routine CPXmipopt
may be used
to find a solution to that problem.
An LP solution does not exist at the end of CPXmipopt
.
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.
Examples of errors include exhausting available
memory (CPXERR_NO_MEMORY
) or encountering invalid data
in the CPLEX problem object (CPXERR_NO_PROBLEM
).
Another possible error is the
inability to solve a subproblem satisfactorily, as reported
by CPXERR_SUBPROB_SOLVE
.
The solution status of the subproblem optimization can be obtained with the
routine CPXgetsubstat
.
Exceeding a user-specified CPLEX limit is not considered an error. Proving the problem infeasible or unbounded is not considered an error.
Note that a zero return value does not necessarily mean that a
solution exists. Use the query routines CPXsolninfo
,
CPXgetstat
, CPXsolution
and the special
mixed integer solution routines to obtain
further information about the status of the optimization.
See Also:
CPXgetstat, CPXsolninfo, CPXsolution, CPXgetobjval
env | A pointer to the CPLEX environment as returned by |
lp | A pointer to a CPLEX problem object as returned by
Examples of errors include exhausting available
memory (
Another possible error is the
inability to solve a subproblem satisfactorily, as reported
by Exceeding a user-specified CPLEX limit is not considered an error. Proving the problem infeasible or unbounded is not considered an error.
Note that a zero return value does not necessarily mean that a
solution exists. Use the query routines |