CPXXqpopt and CPXqpopt
The routineCPXXqpopt/CPXqpopt may be used, at any time after a
continuous quadratic program has been created, to find a solution to that
problem using one of the CPLEX quadratic optimizers.
int CPXXqpopt( CPXCENVptr env, CPXLPptr lp )
int CPXqpopt( CPXCENVptr env, CPXLPptr lp )
Description
The routineCPXXqpopt/CPXqpopt may be used, at any time after a
continuous quadratic program has been created, to find a solution to that
problem using one of the CPLEX quadratic optimizers. It consults the parameter that
controls the choice of optimizer (Dual Simplex, Primal Simplex, or Barrier) for the
algorithm for continuous quadratic optimization
(CPXPARAM_QPMethod). With the default setting
of this parameter (that is, Automatic)
CPLEX invokes the barrier method because it is fastest on a
wide range of problems.
Arguments
- env
-
A pointer to the CPLEX environment as returned by
CPXXopenCPLEX/CPXopenCPLEX. - lp
-
A pointer to the CPLEX problem object as returned by
CPXXcreateprob/CPXcreateprob.
Return
The routine returns zero unless an error occurred during the optimization. Examples of errors include exhausting available memory
(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 the query routines
CPXXsolninfo/CPXsolninfo,
CPXXgetstat/CPXgetstat, and
CPXXsolution/CPXsolution
to obtain further information about the status of the optimization.
Example
status = CPXqpopt (env, lp);