CPXXcompletelp and CPXcompletelp

The routine CPXXcompletelp/CPXcompletelp instructs CPLEX to flush its modification cache.

int  CPXXcompletelp( CPXCENVptr env, CPXLPptr lp )

int  CPXcompletelp( CPXCENVptr env, CPXLPptr lp )

Description

The routine CPXXcompletelp/CPXcompletelp instructs CPLEX to flush its modification cache.

When a problem is modified (for example, by the routine CPXXaddrows/CPXaddrows) CPLEX keeps the changes in a cache for reasons of efficiency and applies all the accumulated changes at once (for example, at the invocation of a subsequent routine that uses or solves the modified matrix). Normally, CPLEX manages this cache automatically. The routine CPXXcompletelp/CPXcompletelp allows users, in those rare cases when necessary, to control when the modifications are applied. For example, use CPXXcompletelp/CPXcompletelp when you need careful timings to distinguish time spent modifying the problem from time spent optimizing.

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

The routine returns 0 (zero) if successful and nonzero if an error occurs.

Example


status = CPXcompletelp (env, lp);