CPXXNETgetphase1cnt 和 CPXNETgetphase1cnt
例程 "CPXXNETgetphase1cnt/CPXNETgetphase1cnt返回最近一次调用 "CPXXNETprimopt/CPXNETprimopt时第一阶段网络单纯形迭代的次数。
CPXCNT CPXXNETgetphase1cnt( CPXCENVptr 环境, CPXCNETptr 网 )
int CPXNETgetphase1cnt( CPXCENVptr 环境, CPXCNETptr 网 )
描述
例程 "CPXXNETgetphase1cnt/CPXNETgetphase1cnt返回最近一次调用 "CPXXNETprimopt/CPXNETprimopt时第一阶段网络单纯形迭代的次数。
参数
- env
- 一个指向
CPXXopenCPLEX/CPXopenCPLEX所返回 CPLEX 环境的指针。 - net
- 一个指向 CPLEX 网络问题对象的指针,此指针由
CPXXNETcreateprob/CPXNETcreateprob返回。
返回
Returns the total number of phase 1 network simplex iterations for the last call toCPXXNETprimopt/CPXNETprimopt, for a CPXNETptr object. 如果 "CPXXNETprimopt/CPXNETprimopt未被调用,则返回 0。 如果出现错误,则返回-1并发出错误信息。示例
phase1cnt = CPXNETgetphase1cnt (env, net);