CPXXgetdblannotations and CPXgetdblannotations
The routine
CPXXgetdblannotations/CPXgetdblannotations
accesses the annotation values range of modeling objects in a CPLEX problem object.
int CPXXgetdblannotations( CPXCENVptr env, CPXCLPptr lp, CPXDIM idx, int objtype, double * annotation, CPXDIM begin, CPXDIM end )
int CPXgetdblannotations( CPXCENVptr env, CPXCLPptr lp, int idx, int objtype, double * annotation, int begin, int end )
Description
The routine
CPXXgetdblannotations/CPXgetdblannotations
accesses the annotation values 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 = CPXgetdblannotations (env, lp, idx, CPX_ANNOTATION_COL, annotations, 0, cur_numcols-1);