GRBgetdblattrarray


GRBgetdblattrarray

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

查询双值数组属性的值。

返回值:

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

参数:

模型:一个加载的优化模型,通常由例程创建GRBnewmodelGRBreadmodel

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

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

len:要检索的数组条目的数量。

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

使用示例:

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