CPXXgetlongannotations and CPXgetlongannotations
The routine
CPXXgetlongannotations/CPXgetlongannotations accesses the annotation values of a
range of modeling objects in a CPLEX problem object.
int CPXXgetlongannotations( CPXCENVptr env, CPXCLPptr lp, CPXDIM idx, int objtype, CPXLONG * annotation, CPXDIM begin, CPXDIM end )
int CPXgetlongannotations( CPXCENVptr env, CPXCLPptr lp, int idx, int objtype, long * annotation, int begin, int end )
Description
The routine
CPXXgetlongannotations/CPXgetlongannotations
accesses the annotation values of a range of modeling objects in a CPLEX problem object.
The type of the modeling objects and the beginning and end of the range must be specified.
Arguments
- env
-
A pointer to the CPLEX environment as returned by
CPXXopenCPLEX/CPXopenCPLEX. - lp
-
A pointer to a CPLEX problem object as returned by
CPXXcreateprob/CPXcreateprob. - idx
- An integer that specifies the index of the annotation to query.
- objtype
- An integer that specifies the type of the modeling objects listed by the integers provided in the parameter indices.
- annotation
-
An array where the specified annotation values are to be returned.
This array must be of length at least (
end-begin+1). The annotation value for itemiis returned inannotation[i-begin]. - begin
- An integer specifying the beginning of the range of annotation values to be returned.
- end
- An integer specifying the end of the range of annotation values to be returned.
Return
The routine returns 0 (zero) if successful and nonzero if an error occurs.Example
status = CPXgetlongannotations (env, lp, CPX_BENDERS_ANNOTATION, CPX_ANNOTATION_COL, benders, 0, cur_numcols-1);