XPRS_nml_copynames
XPRS_nml_copynames |
Purpose
The
XPRS_nml_* functions provide a simple, generic interface to lists of names, which may be names of rows/columns on a problem or may be a list of arbitrary names provided by the user.
XPRS_nml_copynames allows you to copy all the names from one name list to another. As name lists representing row/column names cannot be modified,
XPRS_nml_copynames will be most often used to copy such names to a namelist where they can be modified, for some later use.
Synopsis
int XPRS_CC XPRS_nml_copynames(XPRSnamelist dst, XPRSnamelist src);
Arguments
dst
|
The namelist object to copy names to. Any names already in this name list will be removed. Must be an object previously returned by
XPRS_nml_create.
|
src
|
The namelist object from which all the names should be copied.
|
Example
XPRSprob prob; XPRSnamelist rnames, rnames_on_prob; ... /* Create a namelist */ XPRS_nml_create(&rnames); /* Get a namelist through which we can access the row names */ XPRSgetnamelistobject(prob,1,&rnames_on_prob); /* Now copy these names from the immutable 'XPRSprob' namelist to another one */ XPRS_nml_copynames(rnames,rnames_on_prob); /* The names in the list can now be modified then put to some other use */
Related topics