CPXXbaropt and CPXbaropt

The routine CPXXbaropt/CPXbaropt may be used to find a solution to a linear program (LP), quadratic program (QP), or quadratically constrained program (QCP) by means of the barrier algorithm at any time after the problem is created by a call to CPXXcreateprob/CPXcreateprob.

int  CPXXbaropt( CPXCENVptr env, CPXLPptr lp )

int  CPXbaropt( CPXCENVptr env, CPXLPptr lp )

Description

The routine CPXXbaropt/CPXbaropt may be used to find a solution to a linear program (LP), quadratic program (QP), or quadratically constrained program (QCP) by means of the barrier algorithm at any time after the problem is created by a call to CPXXcreateprob/CPXcreateprob. The optimization results are recorded in the CPLEX problem object.

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 zero unless an error occurred during the optimization. Examples of errors include exhausting available memory (CPXERR_NO_MEMORY) or encountering invalid data in the CPLEX problem object (CPXERR_NO_PROBLEM). Exceeding a user-specified CPLEX limit or proving the model infeasible or unbounded are not considered errors. Note that a zero return value does not necessarily mean that a solution exists. Use query routines CPXXsolninfo/CPXsolninfo, CPXXgetstat/CPXgetstat, and CPXXsolution/CPXsolution to obtain further information about the status of the optimization.

Example


 status = CPXbaropt (env, lp);