GRBgetdblattrarray


GRBgetdblattrarray

int GRBgetdblattrarray GRBmodel *模型,
const char * attrname,
int 开始,
int 兰,
*值)

查询双值数组属性的值。

返回值:

非零返回值表明在查询属性时发生了问题。指的是错误代码可能返回值列表的表。关于错误的详细信息可以通过调用GRBgeterrormsg

参数:

模型:加载的优化模型,通常由routine创建GRBnewmodelGRBreadmodel

attrname:双值数组属性的名称。中列出并描述了可用的属性属性本文档的一部分。

开始:要检索的数组中第一个项的索引。

len:要检索的数组项的数目。

:指向数组属性返回位置的指针。注意,结果数组必须与请求的子数组一样长。

使用示例:

两磅(NUMVARS);error = GRBgetdblattrarray(model, "LB", 0, cols, LB);