CPXXgetconflictnumpasses and CPXgetconflictnumpasses

The routine CPXXgetconflictnumpasses/CPXgetconflictnumpasses accesses the total number of passes needed to identify a minimal conflict in the current problem.

CPXCNT  CPXXgetconflictnumpasses( CPXCENVptr env, CPXCLPptr lp )

int  CPXgetconflictnumpasses( CPXCENVptr env, CPXCLPptr lp )

Description

The routine CPXXgetconflictnumpasses/CPXgetconflictnumpasses accesses the total number of passes needed to identify a minimal conflict in the current problem.

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

If a conflict exists, CPXgetconflictnumpasses returns the total number of passes. If no solution exists, CPXgetconflictnumpasses returns the value 0 (zero).

Example


numpasses = CPXgetconflictnumpasses (env, lp);