CPLEX cpxcb BARRIER: Difference between revisions

From TomWiki
Jump to navigationJump to search
(Created page with "{{Part Of Manual|title=the CPLEX Manual|link=CPLEX}} CPLEX Barrier callback. Called from TOMLAB /CPLEX when solving linear problems using the barrier algorithm. This ...")
 
No edit summary
 
Line 1: Line 1:
{{Part Of Manual|title=the CPLEX Manual|link=[[CPLEX|CPLEX]]}}
{{Part Of Manual|title=the CPLEX Manual|link=[[CPLEX|CPLEX]]}}
CPLEX Barrier callback.
CPLEX_Barrier callback.


Called from TOMLAB /CPLEX when solving linear problems using the barrier algorithm.
Called from TOMLAB /CPLEX when solving linear problems using the barrier algorithm.
Line 6: Line 6:
This callback is enabled by setting ''callback''(5) = 1 in the call to ''cplex.m'', or ''Prob.MIP.callback''(5) = 1 if using tomRun('cplex',...).
This callback is enabled by setting ''callback''(5) = 1 in the call to ''cplex.m'', or ''Prob.MIP.callback''(5) = 1 if using tomRun('cplex',...).


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


Contents of cpxCBInfo vector:
Contents of cpxCBInfo vector:
Line 26: Line 26:
</pre>
</pre>


By returning a nonzero value from cpxcb BARRIER,  the user can terminate the optimization.
By returning a nonzero value from cpxcb_BARRIER,  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.
If modifying this file, it is recommended to make a copy of it which is placed before the original file in the MATLAB path.

Latest revision as of 05:54, 17 August 2011

Notice.png

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

CPLEX_Barrier callback.

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

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

cpxcb_BARRIER 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_BARRIER, 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.