Initializing help system before first use

XSLPgetindex

Purpose
Retrieve the index of an Xpress NonLinear entity with a given name
Synopsis
int XPRS_CC XSLPgetindex(XSLPprob prob, int type, char *name, int *p_index);
Arguments
prob 
The current SLP problem.
type 
type of entity. The following are defined:
XSLP_USERFUNCNAMES 
(=6) User functions;
XSLP_INTERNALFUNCNAMES 
(=7) Internal functions;
XSLP_USERFUNCNAMESNOCASE 
(=8) User functions, case insensitive;
XSLP_INTERNALFUNCNAMESNOCASE 
(=9) Internal functions, case insensitive;

The constants 1 (for row names) and 2 (for column names) may also be used.

name 
Character string containing the name, terminated by a null character.
p_index 
Integer to receive the index of the item.
Example
The following example retrieves the index of the internal SIN function using both an upper-case and a lower case version of the name.
int UpperIndex, LowerIndex;
XSLPgetindex(prob, XSLP_INTERNALFUNCNAMESNOCASE,
             "SIN", &UpperIndex);
XSLPgetindex(prob, XSLP_INTERNALFUNCNAMESNOCASE,
             "sin", &LowerIndex);
UpperIndex and LowerIndex will contain the same value because the search was made using case-insensitive matching.
Further information

All entities count from 1. This includes the use of 1 or 2 (row or column) for type. A value of zero returned in p_index means there is no matching item. The case-insensitive types will find the first match regardless of the case of name or of the defined function.



© 2001-2025 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.