CPXXNETreadcopyprob 和 CPXNETreadcopyprob
The routine CPXXNETreadcopyprob/CPXNETreadcopyprob reads a network, in the CPLEX .net or DIMACS .min format, from a file and copies it to a network problem object.
int CPXXNETreadcopyprob( CPXCENVptr 环境, CPXNETptr 网, char const * filename_str )
int CPXNETreadcopyprob( CPXCENVptr 环境, CPXNETptr 网, char const * filename_str )
描述
The routine CPXXNETreadcopyprob/CPXNETreadcopyprob reads a network, in the CPLEX .net or DIMACS .min format, from a file and copies it to a network problem object. 问题对象中的任何现有网络或解决方案数据都会被替换。
参数
- env
- 一个指向
CPXXopenCPLEX/CPXopenCPLEX所返回 CPLEX 环境的指针。 - net
- 一个指向 CPLEX 网络问题对象的指针,此指针由
CPXXNETcreateprob/CPXNETcreateprob返回。 - filename_str
- 要读取的网络文件名称。
返回
如果此例程成功,那么会返回 0(零),而如果发生错误,那么会返回非零。示例
status = CPXNETreadcopyprob (env, net, "network.net");