buildqtls
Purpose
Generate data required for loading a quadratic expression.
Synopsis
int buildqtls(XPRMcontext ctx, void *nlctx, XPRMnlctr qctr, int onlyqterms, int *nbterm, XPRMnlqterm *qtls, double *cstt);
Arguments
|
ctx
|
Mosel's execution context
|
|
nlctx
|
mmnl execution context
|
|
qctr
|
Quadratric constraint or objective to process
|
|
onlyqterms
|
Ignore linear terms
|
|
nbterm
|
Reference where the number of qterms is returned
|
|
qtls
|
Reference where the list of qterms is returned
|
|
cstt
|
Reference where the constant terms is returned
|
Return value
0 if the expression is constant, 1 for a linear, 2 for a quadratic, 4 for a nonlinear expression and -1 in case of error
Further information
1. This function computes the list of quadratic terms of a quadratic expression. If the option onlyqterms is not specified then linear terms are also included in the list (the second variable reference of a linear term is
NULL).
2. The list
qtls is allocated by the routine: each call to
buildqtls must be followed by a call to
freeqtls in order to release the allocated memory.
Related topics
© 2001-2024 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.
