CPXXgetnumindconstrs and CPXgetnumindconstrs

The routine CPXXgetnumindconstrs/CPXgetnumindconstrs accesses the number of indicator constraints in a CPLEX problem object.

CPXDIM  CPXXgetnumindconstrs( CPXCENVptr env, CPXCLPptr lp )

int  CPXgetnumindconstrs( CPXCENVptr env, CPXCLPptr lp )

Description

The routine CPXXgetnumindconstrs/CPXgetnumindconstrs accesses the number of indicator constraints in a CPLEX problem object.

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 the problem object or environment does not exist, CPXXgetnumindconstrs/CPXgetnumindconstrs returns the value 0 (zero); otherwise, it returns the number of indicator constraints.

Example


 cur_numindconstrs = CPXgetnumindconstrs (env, lp);