Previous Page: CPXaddrowsFirst PageNext Page: CPXboundsa

CPXbaropt


Usage

Barrier Users Only

Description

At any time after a linear or quadratic program has been created via a call to CPXcreateprob(), the routine CPXbaropt() may be used to find a solution to that problem using the barrier algorithm. The optimization results are recorded in the LP problem object.

Return Value

The CPXbaropt() routine returns a value of 0 if successful (i.e., a solution exists, although not necessarily an optimal solution). If unsuccessful, a non-zero value is returned. Use the CPXsolution() or CPXgetstat() routine to determine the status of the barrier optimization.

Synopsis

int CPXbaropt (CPXENVptr env,
               CPXLPptr lp);

Arguments


CPXENVptr env
The pointer to the CPLEX environment as returned by one of the CPXopenCPLEX routines.

CPXLPptr lp
A pointer to a CPLEX LP problem object as returned by CPXcreateprob().

Example

status = CPXbaropt (env, lp);

See Also

Example lpex2.c in the CPLEX User's Manual.

Previous Page: CPXaddrowsFirst PageNext Page: CPXboundsa