CPXXgetmethod and CPXgetmethod
The routine CPXXgetmethod/CPXgetmethod returns an integer specifying the
solution algorithm used to solve the resident LP, QP, or QCP problem.
int CPXXgetmethod( CPXCENVptr env, CPXCLPptr lp )
int CPXgetmethod( CPXCENVptr env, CPXCLPptr lp )
Description
The routine CPXXgetmethod/CPXgetmethod returns an integer specifying the
solution algorithm used to solve the resident LP, QP, or QCP problem.
The possible return values are summarized in this table.
| Value | Symbolic Constant | Algorithm |
| -1 | CPX_ALG_NONE |
None |
| 1 | CPX_ALG_PRIMAL |
Primal simplex |
| 2 | CPX_ALG_DUAL |
Dual simplex |
| 4 | CPX_ALG_BARRIER |
Barrier optimizer (no crossover) |
| 11 | CPX_ALG_FEASOPT |
Feasopt |
| 12 | CPX_ALG_MIP |
Mixed integer optimizer |
Arguments
- env
-
A pointer to the CPLEX environment as returned by
CPXXopenCPLEX/CPXopenCPLEX. - lp
-
A pointer to a CPLEX problem object as returned by
CPXXcreateprob/CPXcreateprob.
Return
The routine returns one of the possible values summarized in the table.
Example
method = CPXgetmethod (env, lp);