CPLEX cpxcb PRESOLVE

From TomWiki
Revision as of 11:09, 16 August 2011 by Elias (talk | contribs) (Created page with "{{Part Of Manual|title=the CPLEX Manual|link=CPLEX}} CPLEX Presolve callback. Called at regular intervals from TOMLAB /CPLEX during presolve. This callback is enable...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Notice.png

This page is part of the CPLEX Manual. See CPLEX.

CPLEX Presolve callback.

Called at regular intervals from TOMLAB /CPLEX during presolve.

This callback is enabled by setting callback(6) = 1 in the call to cplex.m, or P rob.M I P.callback(6) = 1 if using tomRun('cplex',...).

cpxcb PRESOLVE is called with one argument, the cpxCBInfo progress information vector.

Contents of cpxCBInfo variable:

i	cpxCBInfo(i)		- Value
-------------------------------------------------------------
1	PRESOLVE_ROWSGONE	- number of  rows eliminated
2	PRESOLVE_COLSGONE  	- number of  columns eliminated
3	PRESOLVE_AGGSUBST  	- number of  aggregator substitutions
4	PRESOLVE_COEFFS		- number of  modified coefficients

By returning a nonzero value from cpxcb PRESOLVE, the user can terminate the optimization.

If modifying this file, it is recommended to make a copy of it which is placed before the original file in the MATLAB path.