CPXXcleanup and CPXcleanup

The routine CPXXcleanup/CPXcleanup changes to zero any problem coefficients that are smaller in magnitude than the tolerance specified in the argument eps.

int  CPXXcleanup( CPXCENVptr env, CPXLPptr lp, double eps )

int  CPXcleanup( CPXCENVptr env, CPXLPptr lp, double eps )

Description

The routine CPXXcleanup/CPXcleanup changes to zero any problem coefficients that are smaller in magnitude than the tolerance specified in the argument eps.

This routine may be called at any time after a problem object has been created by a call to CPXXcreateprob/CPXcreateprob. This practice is also known as zero-ing out the negligible coefficients. Such coefficients may arise as round-off errors if the matrix coefficients are computed with floating-point arithmetic.

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.
eps
A tolerance to determine whether coefficients in the problem are sufficiently small in magnitude to eliminate.

Return

The routine returns 0 (zero) unless an error occurred during the optimization.

Example


status = CPXcleanup (env, lp, eps);