CPLEX cpxcb QPBARRIER

From TomWiki
Jump to navigationJump to search

Notice.png

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

CPLEX Quadratic Barrier callback.

Called from TOMLAB /CPLEX when solving quadratic problems using the barrier algorithm.

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

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

Contents of cpxCBInfo vector:

 i	cpxCBInfo(i)	- Value
-------------------------------------------------------------
 1	PRIMAL_OBJ	- primal objective value
 2	DUAL_OBJ	- dual  objective  value
 3	PRIMAL_INFMEAS	- measure of primal infeasibility
 4	DUAL_INFMEAS	- measure of dual  infeasibility
 5	PRIMAL_FEAS	- 1 if primal feasible, 0 if not
 6	DUAL_FEAS	- 1 if dual feasible, 0 if not
 7	ITCOUNT		- iteration count
 8	CROSSOVER_PPUSH - primal push crossover itn. count
 9	CROSSOVER_PEXCH - primal exchange crossover itn. count
10	CROSSOVER_DPUSH - dual push crossover itn. count
11	CROSSOVER_DEXCH - dual exchange crossover itn. count

By returning a nonzero value from cpxcb QPBARRIER, 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.