Purpose
Retrieve the address of a user function
Synopsis
int XPRS_CC XSLPgetuserfuncaddress(XSLPprob Prob, int nSLPUF, void **Address);
Arguments
|
Prob
|
The current SLP problem.
|
|
nSLPUF
|
The number of the user function. This always counts from 1 and is
not affected by the setting of XPRS_CSTYLE.
|
|
Address
|
Pointer to hold the address of the user function.
|
Example
The following example retrieves the addresses of user functions 3 and 5
and checks if they are the same.
void *Func3, *Func5;
XSLPgetuserfuncaddress(Prob, 3, &Func3);
XSLPgetuserfuncaddress(Prob, 5, &Func5);
if (Func3 && (Func3 == Func5))
printf("\nFunctions are the same");
Further information
The address returned is the address in memory of the function for functions
of type DLL. It will be NULL for functions of other types.
Related topics
If you have any comments or suggestions about these pages,
please send mail to docs@dashoptimization.com.