XPRSslpchgcoef, XSLPchgcoef
int XPRSslpchgcoef(XPRSprob prob, int row, int col, const double *factor, int parsed, const int type[], const double value[]);
int XSLPchgcoef(XSLPprob prob, int row, int col, const double *factor, int parsed, const int type[], const double value[]);
|
prob
|
The current problem.
|
|
row
|
The index of the matrix row for the coefficient.
|
|
col
|
The index of the matrix column for the coefficient.
|
|
factor
|
Address of a double precision variable holding the constant multiplier for the formula. If
factor is
NULL, a value of 1.0 will be used.
|
|
parsed
|
Integer indicating whether the token arrays are formatted as internal unparsed (
parsed=0) or internal parsed reverse Polish (
parsed=1).
|
|
type
|
Array of token types providing the description and formula for each item.
|
|
value
|
Array of values corresponding to the types in
type.
|
int n, iSin, type[4];
double value[4];
double factor;
XPRSgetindex(prob, XPRS_NLPINTERNALFUNCNAMESNOCASE,
"sin", &iSin);
n = 0;
type[n] = XPRS_TOK_IFUN; value[n++] = iSin;
type[n] = XPRS_TOK_COL; value[n++] = 0;
type[n++] = XPRS_TOK_RB;
type[n++] = XPRS_TOK_EOF;
factor = 2.5;
XPRSslpchgcoef(prob, 1, 3, &factor, 0, type, value);
XPRSgetindex is used to retrieve the index for the internal function sin. The "nocase" version matches the function name regardless of the (upper or lower) case of the name.
The formula is written in unparsed form (parsed = 0) and so it is provided as tokens in the same order as they would appear if the formula were written in character form.
© 2001-2026 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.
