XSLPchgxv
PurposeAdd or change an extended variable array (XV) in an SLP problemSynopsisint XPRS_CC XSLPchgxv(XSLPprob Prob, int nSLPXV, int *nXVitems);Arguments
Prob The current SLP problem. nSLPXV integer holding the index of the XV. A zero index will create a new XV. nXVitems Address of an integer holding the number of items in the XV.ExampleThe following example creates a new XV, and deletes the last item from XV number 4.int nXVitem; XSLPchgxv(Prob, 0, NULL); XSLPgetxv(Prob, 4, &nXVitem); nXVitem--; XSLPchgxv(Prob, 4, &nXVitem);Note the use of XSLPgetxv to find the current number of items in the XV.Further informationIf nXVitems is NULL then the existing value is retained. For a new XV, nXVitems should always be zero or NULL. For an existing XV, nXVitems can be less than or equal to the current number of items in the XV. If it is less, then items will be deleted from the end of the XV.
XSLPchgxvitem is used to add items to an existing or newly-created XV.
Related topics
If you have any comments or suggestions about these pages, please send mail to docs@dashoptimization.com.