CPXXbaropt 和 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 环境, CPXLPptr lp )
int CPXbaropt( CPXCENVptr 环境, CPXLPptr lp )
描述
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. 优化结果记录在 CPLEX 问题对象中。
参数
- env
- 一个指向
CPXXopenCPLEX/CPXopenCPLEX所返回 CPLEX 环境的指针。 - lp
- 一个指向
CPXXcreateprob/CPXcreateprob所返回 CPLEX 问题对象的指针。
返回
例程会返回零,除非优化期间发生了错误。 错误的例子包括耗尽可用内存(CPXERR_NO_MEMORY)或在 CPLEX 问题对象中遇到无效数据(CPXERR_NO_PROBLEM)。超出用户指定的 CPLEX 限制或证明模型不可行或无约束不属于错误。 请注意,返回零值不一定意味着存在解法。 使用查询例程 CPXXsolninfo/CPXsolninfo、CPXXgetstat/CPXgetstat 和 CPXXsolution/CPXsolution 获取有关优化状态的更多信息。
示例
status = CPXbaropt (env, lp);